media: rockchip: rga: use macros for testing buffer type
authorMichael Tretter <m.tretter@pengutronix.de>
Fri, 13 Oct 2023 11:00:31 +0000 (13:00 +0200)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Thu, 7 Dec 2023 07:56:14 +0000 (08:56 +0100)
commit2addee7aeff25260f35e688f7ced057b8651c1c5
tree42ed53fa8b7f441f1f3760ff020af7e300e7168a
parent4e4dd24e309dbd9a3cac7a228b62991a8dfe8390
media: rockchip: rga: use macros for testing buffer type

Use the provided V4L2_TYPE_IS_{OUTPUT,CAPTURE} macros to check if the
buffer or queue is OUTPUT or CAPTURE. The macros work also work for the
_MPLANE buffer and queue types and make it easier to switch to the
multi-planar API.

Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/platform/rockchip/rga/rga.c