Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/meson: use default case for unsupported DSI pixel formats

Use default instead of listing unsupported formats explicitly, so the
switch statements don't need updating each time a new pixel format is
added.

Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Alexander Koskovich <akoskovich@pm.me>
Patchwork: https://patchwork.freedesktop.org/patch/713715/
Link: https://lore.kernel.org/r/20260324-dsi-rgb101010-support-v5-2-ff6afc904115@pm.me
Acked-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>

authored by

Alexander Koskovich and committed by
Dmitry Baryshkov
a780b7f6 b50dc1e5

+2 -4
+2 -4
drivers/gpu/drm/meson/meson_dw_mipi_dsi.c
··· 119 119 dpi_data_format = DPI_COLOR_18BIT_CFG_2; 120 120 venc_data_width = VENC_IN_COLOR_18B; 121 121 break; 122 - case MIPI_DSI_FMT_RGB666_PACKED: 123 - case MIPI_DSI_FMT_RGB565: 122 + default: 124 123 return -EINVAL; 125 124 } 126 125 ··· 231 232 break; 232 233 case MIPI_DSI_FMT_RGB666: 233 234 break; 234 - case MIPI_DSI_FMT_RGB666_PACKED: 235 - case MIPI_DSI_FMT_RGB565: 235 + default: 236 236 dev_err(mipi_dsi->dev, "invalid pixel format %d\n", device->format); 237 237 return -EINVAL; 238 238 }