We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 58d8a90 commit da4a7efCopy full SHA for da4a7ef
1 file changed
drivers/gpu/drm/rp1/rp1-dsi/rp1_dsi_dsi.c
@@ -438,15 +438,13 @@ static u32 get_colorcode(enum mipi_dsi_pixel_format fmt)
438
return 0x000;
439
case MIPI_DSI_FMT_RGB888:
440
return 0x005;
441
- case MIPI_DSI_FMT_RGB101010:
442
- break;
+ default:
+ /* This should be impossible as the format is validated in
443
+ * rp1dsi_host_attach
444
+ */
445
+ WARN_ONCE(1, "Invalid colour format configured for DSI");
446
+ return 0x005;
447
}
-
- /* This should be impossible as the format is validated in
- * rp1dsi_host_attach
- */
448
- WARN_ONCE(1, "Invalid colour format configured for DSI");
449
- return 0x005;
450
451
452
/* Frequency limits for DPI, HS and LP clocks, and some magic numbers */
0 commit comments