]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/mediatek: mtk_dpi: Use switch in mtk_dpi_config_color_format()
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Wed, 9 Apr 2025 13:13:02 +0000 (15:13 +0200)
committerChun-Kuang Hu <chunkuang.hu@kernel.org>
Sun, 27 Apr 2025 01:26:56 +0000 (01:26 +0000)
commit618dfbe01a297dce9834e2456307f05d6be59834
tree9c8705bb4f872258f4669be126108608169be6f8
parent26c691a6620069894ba3fde9147cf49d340870b3
drm/mediatek: mtk_dpi: Use switch in mtk_dpi_config_color_format()

In preparation for adding support for an additional color format,
convert the format conditional in mtk_dpi_config_color_format()
to a switch.
This also makes the concept of RGB being the default color format
a little more human readable.

This commit brings no functional differences.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: CK Hu <ck.hu@mediatek.com>
Link: https://patchwork.kernel.org/project/dri-devel/patch/20250409131306.108635-2-angelogioacchino.delregno@collabora.com/
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
drivers/gpu/drm/mediatek/mtk_dpi.c