media: hantro: imx: reuse MB_DIM define
authorEmil Velikov <emil.velikov@collabora.com>
Thu, 1 Apr 2021 14:43:29 +0000 (16:43 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 19 May 2021 07:51:39 +0000 (09:51 +0200)
Swap the hardcoded 16 with MB_DIM define.

Fixes: 8e4aaa687863 ("media: hantro: add initial i.MX8MQ support")
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Reviewed-by: Ezequiel Garcia <ezequiel@collabora.com>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/hantro/imx8m_vpu_hw.c

index c222de0..1f48c19 100644 (file)
@@ -109,10 +109,10 @@ static const struct hantro_fmt imx8m_vpu_dec_fmts[] = {
                .frmsize = {
                        .min_width = 48,
                        .max_width = 3840,
-                       .step_width = 16,
+                       .step_width = MB_DIM,
                        .min_height = 48,
                        .max_height = 2160,
-                       .step_height = 16,
+                       .step_height = MB_DIM,
                },
        },
        {