media: hantro: imx: reuse MB_DIM define

Swap the hardcoded 16 with MB_DIM define.

Fixes: 8e4aaa6878 ("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>
This commit is contained in:
Emil Velikov
2021-04-01 16:43:29 +02:00
committed by Mauro Carvalho Chehab
parent 09f4310c6b
commit 3b33084951

View 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,
},
},
{