media: platform: Refactor mtk_jpeg_try_fmt_mplane()
authorXia Jiang <xia.jiang@mediatek.com>
Fri, 14 Aug 2020 07:11:51 +0000 (09:11 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Fri, 28 Aug 2020 13:32:42 +0000 (15:32 +0200)
commit690345fc7a6238b36052e9593c3315e7a4923000
tree54f19a8f77614a9b9a6f6d49709937a2ec0b66dd
parent79aa1e6859af35f693bf13ac7eb94b5b6fd250e9
media: platform: Refactor mtk_jpeg_try_fmt_mplane()

The function of mtk_jpeg_adjust_fmt_mplane() equals
mtk_jpeg_g_fmt_vid_mplane(), so use mtk_jpeg_g_fmt_vid_mplane() to
replace it .
Delete the unused ctx parameter.
Using fourcc to distinguish between different formats is more generic,
because that jpeg enc will also use it.

Reviewed-by: Tomasz Figa <tfiga@chromium.org>
Signed-off-by: Xia Jiang <xia.jiang@mediatek.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c