drm/msm/dsi: use correct enum in dsi_get_cmd_fmt
authorStefan Agner <stefan@agner.ch>
Mon, 19 Mar 2018 21:26:32 +0000 (22:26 +0100)
committerRob Clark <robdclark@gmail.com>
Thu, 19 Apr 2018 14:09:23 +0000 (10:09 -0400)
commita4af89286f8fc382459308764ea05935dc477cdc
tree5f4942d06ffc74ea48be3f929130abd5fc4680e5
parent3976626ea3d2011f8fd3f3a47070a8b792018253
drm/msm/dsi: use correct enum in dsi_get_cmd_fmt

The function dsi_get_cmd_fmt returns enum dsi_cmd_dst_format,
use the correct enum value also for MIPI_DSI_FMT_RGB666/_PACKED.

This has been discovered using clang:
  drivers/gpu/drm/msm/dsi/dsi_host.c:743:35: warning: implicit conversion
        from enumeration type 'enum dsi_vid_dst_format' to different
        enumeration type 'enum dsi_cmd_dst_format' [-Wenum-conversion]
          case MIPI_DSI_FMT_RGB666:       return VID_DST_FORMAT_RGB666;
                                          ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Stefan Agner <stefan@agner.ch>
Reviewed-by: Archit Taneja <architt@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/dsi/dsi_host.c