Commit 89ef5c6a authored by Mathieu Malaterre's avatar Mathieu Malaterre Committed by Bartlomiej Zolnierkiewicz

video: offb: annotate implicit fall throughs

There is a plan to build the kernel with -Wimplicit-fallthrough and
these places in the code produced warnings (W=1). Fix them up.

This commit remove the following warnings:

  drivers/video/fbdev/offb.c:211:5: warning: this statement may fall through [-Wimplicit-fallthrough=]
  drivers/video/fbdev/offb.c:142:3: warning: this statement may fall through [-Wimplicit-fallthrough=]
Signed-off-by: default avatarMathieu Malaterre <malat@debian.org>
Acked-by: default avatarGustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
parent f1fbbf5c
...@@ -141,6 +141,7 @@ static int offb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, ...@@ -141,6 +141,7 @@ static int offb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
/* Clear PALETTE_ACCESS_CNTL in DAC_CNTL */ /* Clear PALETTE_ACCESS_CNTL in DAC_CNTL */
out_le32(par->cmap_adr + 0x58, out_le32(par->cmap_adr + 0x58,
in_le32(par->cmap_adr + 0x58) & ~0x20); in_le32(par->cmap_adr + 0x58) & ~0x20);
/* fall through */
case cmap_r128: case cmap_r128:
/* Set palette index & data */ /* Set palette index & data */
out_8(par->cmap_adr + 0xb0, regno); out_8(par->cmap_adr + 0xb0, regno);
...@@ -210,6 +211,7 @@ static int offb_blank(int blank, struct fb_info *info) ...@@ -210,6 +211,7 @@ static int offb_blank(int blank, struct fb_info *info)
/* Clear PALETTE_ACCESS_CNTL in DAC_CNTL */ /* Clear PALETTE_ACCESS_CNTL in DAC_CNTL */
out_le32(par->cmap_adr + 0x58, out_le32(par->cmap_adr + 0x58,
in_le32(par->cmap_adr + 0x58) & ~0x20); in_le32(par->cmap_adr + 0x58) & ~0x20);
/* fall through */
case cmap_r128: case cmap_r128:
/* Set palette index & data */ /* Set palette index & data */
out_8(par->cmap_adr + 0xb0, i); out_8(par->cmap_adr + 0xb0, i);
......
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