Skip to content

Commit 5334653

Browse files
drm/sun4i: tcon: Mark expected switch fall-through
Mark switch cases where we are expecting to fall through. Fix the following warning (Building: sunxi_defconfig arm): drivers/gpu/drm/sun4i/sun4i_tcon.c: In function ‘sun4i_tcon0_mode_set_dithering’: drivers/gpu/drm/sun4i/sun4i_tcon.c:318:7: warning: this statement may fall through [-Wimplicit-fallthrough=] val |= SUN4I_TCON0_FRM_CTL_MODE_B; drivers/gpu/drm/sun4i/sun4i_tcon.c:319:2: note: here case MEDIA_BUS_FMT_RGB666_1X18: ^~~~ Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
1 parent edf6a05 commit 5334653

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎drivers/gpu/drm/sun4i/sun4i_tcon.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,7 @@ static void sun4i_tcon0_mode_set_dithering(struct sun4i_tcon *tcon,
314314
/* R and B components are only 5 bits deep */
315315
val |= SUN4I_TCON0_FRM_CTL_MODE_R;
316316
val |= SUN4I_TCON0_FRM_CTL_MODE_B;
317+
/* Fall through */
317318
case MEDIA_BUS_FMT_RGB666_1X18:
318319
case MEDIA_BUS_FMT_RGB666_1X7X3_SPWG:
319320
/* Fall through: enable dithering */

0 commit comments

Comments
 (0)