]> git.baikalelectronics.ru Git - kernel.git/commit
drm/sun4i: tcon: Mark expected switch fall-through
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Tue, 20 Aug 2019 17:47:06 +0000 (12:47 -0500)
committerGustavo A. R. Silva <gustavo@embeddedor.com>
Wed, 21 Aug 2019 00:43:08 +0000 (19:43 -0500)
commit9cfdd7c83ccd61282ce2cf1596655c591fe8c531
tree14f1c121c7406cd7ce31d4d8251497831f72c0dd
parentf3dff42f6852ec78d3d4e6ceb6d2add390c40194
drm/sun4i: tcon: Mark expected switch fall-through

Mark switch cases where we are expecting to fall through.

Fix the following warning (Building: sunxi_defconfig arm):

drivers/gpu/drm/sun4i/sun4i_tcon.c: In function ‘sun4i_tcon0_mode_set_dithering’:
drivers/gpu/drm/sun4i/sun4i_tcon.c:318:7: warning: this statement may fall through [-Wimplicit-fallthrough=]
   val |= SUN4I_TCON0_FRM_CTL_MODE_B;
drivers/gpu/drm/sun4i/sun4i_tcon.c:319:2: note: here
  case MEDIA_BUS_FMT_RGB666_1X18:
  ^~~~

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
drivers/gpu/drm/sun4i/sun4i_tcon.c