diff options
author | 2018-03-19 22:26:32 +0100 | |
---|---|---|
committer | 2018-04-19 10:09:23 -0400 | |
commit | a4af89286f8fc382459308764ea05935dc477cdc (patch) | |
tree | 5f4942d06ffc74ea48be3f929130abd5fc4680e5 /lib/test_overflow.c | |
parent | drm/msm: Fix possible null dereference on failure of get_pages() (diff) | |
download | linux-dev-a4af89286f8fc382459308764ea05935dc477cdc.tar.xz linux-dev-a4af89286f8fc382459308764ea05935dc477cdc.zip |
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>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions