Skip to contentSkip to conversation

video: fbdev: sm501fb: mark expected switch fall-through in sm501fb_blank_crt

PATCH In review Gustavo A. R. Silva 2 participants 2 messages Nov 6, 2017 – Nov 9, 2017 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 video: fbdev: sm501fb: mark expected switch fall-through in sm501fb_blank_crt

In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through.

---
 drivers/video/fbdev/sm501fb.c | 1 +
 1 file changed, 1 insertion(+)
drivers/video/fbdev/sm501fb.c +1 -0
index 076dd27..7085cc0 100644
@@ -1008,6 +1008,7 @@ static int sm501fb_blank_crt(int blank_mode, struct fb_info *info)
 	case FB_BLANK_POWERDOWN:
 		ctrl &= ~SM501_DC_CRT_CONTROL_ENABLE;
 		sm501_misc_control(fbi->dev->parent, SM501_MISC_DAC_POWER, 0);
+		/* fall through */
 
 	case FB_BLANK_NORMAL:
 		ctrl |= SM501_DC_CRT_CONTROL_BLANK;
Signature · 1 line
2.7.4
#1 lore raw
Quoted 4 lines · Gustavo A. R. Silva

In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through.

Patch queued for 4.15, thanks.

Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics