]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbe05329717dc90008ab02a3720e1817a83c305ad
tree54f19a8f77614a9b9a6f6d49709937a2ec0b66dd
parent7b51b2883735e43079f22e201ec1df7f581df904
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