Skip to content

Commit

Permalink
v4l: xilinx: vpss-csc: Fix warning for PW.MIXED_ENUM_TYPE
Browse files Browse the repository at this point in the history
This patch fix the warnings for the PW.MIXED_ENUM_TYPE type.

The actual warnings are:

For xcsc_parse_of():
Event mixed_enum_type: 	enumerated type mixed with another type

Signed-off-by: Vishal Sagar <vishal.sagar@xilinx.com>
Reviewed-by: Hyun Kwon <hyun.kwon@xilinx.com>
  • Loading branch information
vishals-xlnx authored and Michal Simek committed Sep 25, 2020
1 parent b39c0a2 commit 904763e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/media/platform/xilinx/xilinx-vpss-csc.c
Expand Up @@ -1047,8 +1047,10 @@ static int xcsc_parse_of(struct xcsc_dev *xcsc)
}
switch (video_width[0]) {
case XVIDC_BPC_8:
xcsc->color_depth = XVIDC_BPC_8;
break;
case XVIDC_BPC_10:
xcsc->color_depth = video_width[0];
xcsc->color_depth = XVIDC_BPC_10;
break;
default:
dev_err(dev, "Unsupported color depth %d", video_width[0]);
Expand Down

0 comments on commit 904763e

Please sign in to comment.