Skip to content

Commit

Permalink
drm: xlnx: dptx: Fix fallthrough warnings
Browse files Browse the repository at this point in the history
This patch fixes fallthrough warnings.

Signed-off-by: Rajesh Gugulothu <gugulothu.rajesh@xilinx.com>
Reviewed-by: Vishal Sagar <vishal.sagar@xilinx.com>
  • Loading branch information
Rajesh Gugulothu authored and Michal Simek committed Sep 17, 2021
1 parent 4e77b07 commit b298d79
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions drivers/gpu/drm/xlnx/xlnx_dptx.c
Expand Up @@ -558,37 +558,37 @@ static void xlnx_dp_set_color(struct xlnx_dp *dp, u32 drm_fourcc)

switch (drm_fourcc) {
case DRM_FORMAT_XBGR8888:
/* fall-through */
fallthrough;
case DRM_FORMAT_XRGB8888:
/* fall-through */
fallthrough;
case DRM_FORMAT_BGR888:
/* fall-through */
fallthrough;
case DRM_FORMAT_RGB888:
/* fall-through */
fallthrough;
case DRM_FORMAT_XBGR2101010:
config->misc0 |= XDPTX_MISC0_RGB_MASK;
config->num_colors = 3;
config->fmt = 0x0;
break;
case DRM_FORMAT_VUY888:
/* fall-through */
fallthrough;
case DRM_FORMAT_XVUY8888:
/* fall-through */
fallthrough;
case DRM_FORMAT_Y8:
/* fall-through */
fallthrough;
case DRM_FORMAT_XVUY2101010:
/* fall-through */
fallthrough;
case DRM_FORMAT_Y10:
config->misc0 |= XDPTX_MISC0_YCRCB444_MASK;
config->num_colors = 3;
config->fmt = 0x1;
break;
case DRM_FORMAT_YUYV:
/* fall-through */
fallthrough;
case DRM_FORMAT_UYVY:
/* fall-through */
fallthrough;
case DRM_FORMAT_NV16:
/* fall-through */
fallthrough;
case DRM_FORMAT_XV20:
config->misc0 |= XDPTX_MISC0_YCRCB422_MASK;
config->num_colors = 2;
Expand Down

0 comments on commit b298d79

Please sign in to comment.