Skip to content

Commit 12382ad

Browse files
GustavoARSilvabzolnier
authored andcommitted
video: fbdev: mark expected switch fall-throughs
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Signed-off-by: Gustavo A. R. Silva <[email protected]> Cc: Florian Tobias Schandinat <[email protected]> Signed-off-by: Bartlomiej Zolnierkiewicz <[email protected]>
1 parent 2968b52 commit 12382ad

File tree

4 files changed

+5
-0
lines changed

4 files changed

+5
-0
lines changed

drivers/video/fbdev/i740fb.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,7 @@ static int i740fb_decode_var(const struct fb_var_screeninfo *var,
429429
break;
430430
case 9 ... 15:
431431
bpp = 15;
432+
/* fall through */
432433
case 16:
433434
if ((1000000 / var->pixclock) > DACSPEED16) {
434435
dev_err(info->device, "requested pixclock %i MHz out of range (max. %i MHz at 15/16bpp)\n",

drivers/video/fbdev/pm2fb.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,10 @@ static u32 to3264(u32 timing, int bpp, int is64)
233233
switch (bpp) {
234234
case 24:
235235
timing *= 3;
236+
/* fall through */
236237
case 8:
237238
timing >>= 1;
239+
/* fall through */
238240
case 16:
239241
timing >>= 1;
240242
case 32:

drivers/video/fbdev/tdfxfb.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,7 @@ static int tdfxfb_check_var(struct fb_var_screeninfo *var, struct fb_info *info)
522522
case 32:
523523
var->transp.offset = 24;
524524
var->transp.length = 8;
525+
/* fall through */
525526
case 24:
526527
var->red.offset = 16;
527528
var->green.offset = 8;

drivers/video/fbdev/via/lcd.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -758,6 +758,7 @@ static void set_lcd_output_path(int set_iga, int output_interface)
758758
viaparinfo->chip_info->gfx_chip_name))
759759
viafb_write_reg_mask(CR97, VIACR, 0x84,
760760
BIT7 + BIT2 + BIT1 + BIT0);
761+
/* fall through */
761762
case INTERFACE_DVP0:
762763
case INTERFACE_DVP1:
763764
case INTERFACE_DFP_HIGH:

0 commit comments

Comments
 (0)