media: platform: mtk-mdp3: cmdq: Remove duplicated platforms checks
authorMohammed Anees <pvmohammedanees2003@gmail.com>
Thu, 17 Oct 2024 20:16:12 +0000 (01:46 +0530)
committerHans Verkuil <hverkuil@xs4all.nl>
Mon, 2 Dec 2024 13:05:21 +0000 (14:05 +0100)
commit27dcdb63aac76a637a5a18a4065b442cc182d883
treea73aacace4b6270579d0b90fd854e466883c15fd
parent40384c840ea1944d7c5a392e8975ed088ecf0b37
media: platform: mtk-mdp3: cmdq: Remove duplicated platforms checks

The platform compatibility checks for MT8183 and
MT8195 in mdp_cmdq_prepare() are redundant as they are
done in __get_config_offset() itself. Furthermore
there are two if-else branch in __get_config_offset()
which have similar conditions and are redundant.
To address this, remove the check in mdp_cmdq_prepare()
and combine the two if-else branch into one in
__get_config_offset().

Signed-off-by: Mohammed Anees <pvmohammedanees2003@gmail.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/platform/mediatek/mdp3/mtk-mdp3-cmdq.c