media: imx: imx-media-fim: Replace macro icap_enabled() with function
authorBrent Pappas <bpappas@pappasbrent.com>
Mon, 23 Jan 2023 19:17:14 +0000 (20:17 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Wed, 8 Feb 2023 08:03:22 +0000 (09:03 +0100)
Replace the macro icap_enabled() with a static function to comply
with Linux coding style standards.

Signed-off-by: Brent Pappas <bpappas@pappasbrent.com>
Reviewed-by: Marco Felsch <m.felsch@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/staging/media/imx/imx-media-fim.c

index f456751..e28a33d 100644 (file)
@@ -68,7 +68,10 @@ struct imx_media_fim {
        bool              stream_on;
 };
 
-#define icap_enabled(fim) ((fim)->icap_flags != IRQ_TYPE_NONE)
+static bool icap_enabled(struct imx_media_fim *fim)
+{
+       return fim->icap_flags != IRQ_TYPE_NONE;
+}
 
 static void update_fim_nominal(struct imx_media_fim *fim,
                               const struct v4l2_fract *fi)