Commit 7a46e2b9 authored by Brent Pappas's avatar Brent Pappas Committed by Mauro Carvalho Chehab

media: imx: imx-media-fim: Replace macro icap_enabled() with function

Replace the macro icap_enabled() with a static function to comply
with Linux coding style standards.
Signed-off-by: default avatarBrent Pappas <bpappas@pappasbrent.com>
Reviewed-by: default avatarMarco Felsch <m.felsch@pengutronix.de>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent 4ab3f69c
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment