[PATCH v10 02/22] drm/display: hdmi-state-helper: Use default case for unsupported formats
Cristian Ciocaltea
cristian.ciocaltea at collabora.com
Fri Mar 6 13:36:20 PST 2026
On 3/5/26 4:19 PM, Nicolas Frattaroli wrote:
> Switch statements that do not handle all possible values of an
> enumeration will generate a warning during compilation. In preparation
> for adding a COUNT value to the end of the enum, this needs to be dealt
> with.
>
> Add a default case to sink_supports_format_bpc's DRM_OUTPUT_COLOR_FORMAT
> switch statement, and move the log-and-return unknown pixel format
> handling into it.
>
> No functional change.
>
> Signed-off-by: Nicolas Frattaroli <nicolas.frattaroli at collabora.com>
Reviewed-by: Cristian Ciocaltea <cristian.ciocaltea at collabora.com>
More information about the Linux-rockchip
mailing list