summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathieu Malaterre <malat@debian.org>2019-02-08 13:24:46 -0500
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>2019-02-08 13:24:46 -0500
commit89ef5c6a7584f9d7f8f11def67d2e8a2312ec9fe (patch)
treed9824e95ef8d6463ebd68b8033be0aa71b3f6d48
parentf1fbbf5cfaa8f5e651c85a9c504ed65e96b1b51b (diff)
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: Mathieu Malaterre <malat@debian.org> Acked-by: Gustavo A. R. Silva <gustavo@embeddedor.com> Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
-rw-r--r--drivers/video/fbdev/offb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/video/fbdev/offb.c b/drivers/video/fbdev/offb.c
index 8f62e174990b..fbc6eafb63c7 100644
--- a/drivers/video/fbdev/offb.c
+++ b/drivers/video/fbdev/offb.c
@@ -141,6 +141,7 @@ static int offb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
141 /* Clear PALETTE_ACCESS_CNTL in DAC_CNTL */ 141 /* Clear PALETTE_ACCESS_CNTL in DAC_CNTL */
142 out_le32(par->cmap_adr + 0x58, 142 out_le32(par->cmap_adr + 0x58,
143 in_le32(par->cmap_adr + 0x58) & ~0x20); 143 in_le32(par->cmap_adr + 0x58) & ~0x20);
144 /* fall through */
144 case cmap_r128: 145 case cmap_r128:
145 /* Set palette index & data */ 146 /* Set palette index & data */
146 out_8(par->cmap_adr + 0xb0, regno); 147 out_8(par->cmap_adr + 0xb0, regno);
@@ -210,6 +211,7 @@ static int offb_blank(int blank, struct fb_info *info)
210 /* Clear PALETTE_ACCESS_CNTL in DAC_CNTL */ 211 /* Clear PALETTE_ACCESS_CNTL in DAC_CNTL */
211 out_le32(par->cmap_adr + 0x58, 212 out_le32(par->cmap_adr + 0x58,
212 in_le32(par->cmap_adr + 0x58) & ~0x20); 213 in_le32(par->cmap_adr + 0x58) & ~0x20);
214 /* fall through */
213 case cmap_r128: 215 case cmap_r128:
214 /* Set palette index & data */ 216 /* Set palette index & data */
215 out_8(par->cmap_adr + 0xb0, i); 217 out_8(par->cmap_adr + 0xb0, i);