Commit 12382ad9 authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Bartlomiej Zolnierkiewicz

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: default avatarGustavo A. R. Silva <gustavo@embeddedor.com>
Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
parent 2968b526
...@@ -429,6 +429,7 @@ static int i740fb_decode_var(const struct fb_var_screeninfo *var, ...@@ -429,6 +429,7 @@ static int i740fb_decode_var(const struct fb_var_screeninfo *var,
break; break;
case 9 ... 15: case 9 ... 15:
bpp = 15; bpp = 15;
/* fall through */
case 16: case 16:
if ((1000000 / var->pixclock) > DACSPEED16) { if ((1000000 / var->pixclock) > DACSPEED16) {
dev_err(info->device, "requested pixclock %i MHz out of range (max. %i MHz at 15/16bpp)\n", dev_err(info->device, "requested pixclock %i MHz out of range (max. %i MHz at 15/16bpp)\n",
......
...@@ -233,8 +233,10 @@ static u32 to3264(u32 timing, int bpp, int is64) ...@@ -233,8 +233,10 @@ static u32 to3264(u32 timing, int bpp, int is64)
switch (bpp) { switch (bpp) {
case 24: case 24:
timing *= 3; timing *= 3;
/* fall through */
case 8: case 8:
timing >>= 1; timing >>= 1;
/* fall through */
case 16: case 16:
timing >>= 1; timing >>= 1;
case 32: case 32:
......
...@@ -522,6 +522,7 @@ static int tdfxfb_check_var(struct fb_var_screeninfo *var, struct fb_info *info) ...@@ -522,6 +522,7 @@ static int tdfxfb_check_var(struct fb_var_screeninfo *var, struct fb_info *info)
case 32: case 32:
var->transp.offset = 24; var->transp.offset = 24;
var->transp.length = 8; var->transp.length = 8;
/* fall through */
case 24: case 24:
var->red.offset = 16; var->red.offset = 16;
var->green.offset = 8; var->green.offset = 8;
......
...@@ -758,6 +758,7 @@ static void set_lcd_output_path(int set_iga, int output_interface) ...@@ -758,6 +758,7 @@ static void set_lcd_output_path(int set_iga, int output_interface)
viaparinfo->chip_info->gfx_chip_name)) viaparinfo->chip_info->gfx_chip_name))
viafb_write_reg_mask(CR97, VIACR, 0x84, viafb_write_reg_mask(CR97, VIACR, 0x84,
BIT7 + BIT2 + BIT1 + BIT0); BIT7 + BIT2 + BIT1 + BIT0);
/* fall through */
case INTERFACE_DVP0: case INTERFACE_DVP0:
case INTERFACE_DVP1: case INTERFACE_DVP1:
case INTERFACE_DFP_HIGH: case INTERFACE_DFP_HIGH:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment