diff options
author | Brent Pappas <bpappas@pappasbrent.com> | 2023-01-23 22:17:14 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2023-02-08 11:03:22 +0300 |
commit | 7a46e2b923939b03735720616743a70fe6917c2d (patch) | |
tree | 7e5aa834e940009cb8de5b194a2809500416485b /drivers/staging | |
parent | 4ab3f69cba785988b7cb386e35e661bfa1aa0706 (diff) | |
download | linux-7a46e2b923939b03735720616743a70fe6917c2d.tar.xz |
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: 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>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/media/imx/imx-media-fim.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/staging/media/imx/imx-media-fim.c b/drivers/staging/media/imx/imx-media-fim.c index f456751f100a..e28a33d9dec7 100644 --- a/drivers/staging/media/imx/imx-media-fim.c +++ b/drivers/staging/media/imx/imx-media-fim.c @@ -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) |