Skip to content

Commit da4a7ef

Browse files
committed
fixup! drm: Add RP1 DSI driver
1 parent 58d8a90 commit da4a7ef

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

drivers/gpu/drm/rp1/rp1-dsi/rp1_dsi_dsi.c

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -438,15 +438,13 @@ static u32 get_colorcode(enum mipi_dsi_pixel_format fmt)
438438
return 0x000;
439439
case MIPI_DSI_FMT_RGB888:
440440
return 0x005;
441-
case MIPI_DSI_FMT_RGB101010:
442-
break;
441+
default:
442+
/* 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;
443447
}
444-
445-
/* This should be impossible as the format is validated in
446-
* rp1dsi_host_attach
447-
*/
448-
WARN_ONCE(1, "Invalid colour format configured for DSI");
449-
return 0x005;
450448
}
451449

452450
/* Frequency limits for DPI, HS and LP clocks, and some magic numbers */

0 commit comments

Comments
 (0)