diff options
Diffstat (limited to 'drivers/media/video/ov9640.c')
-rw-r--r-- | drivers/media/video/ov9640.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/ov9640.c b/drivers/media/video/ov9640.c index 035e9ecb0c75..7ce9e05b4781 100644 --- a/drivers/media/video/ov9640.c +++ b/drivers/media/video/ov9640.c | |||
@@ -614,10 +614,10 @@ static int ov9640_try_fmt(struct v4l2_subdev *sd, | |||
614 | return 0; | 614 | return 0; |
615 | } | 615 | } |
616 | 616 | ||
617 | static int ov9640_enum_fmt(struct v4l2_subdev *sd, int index, | 617 | static int ov9640_enum_fmt(struct v4l2_subdev *sd, unsigned int index, |
618 | enum v4l2_mbus_pixelcode *code) | 618 | enum v4l2_mbus_pixelcode *code) |
619 | { | 619 | { |
620 | if ((unsigned int)index >= ARRAY_SIZE(ov9640_codes)) | 620 | if (index >= ARRAY_SIZE(ov9640_codes)) |
621 | return -EINVAL; | 621 | return -EINVAL; |
622 | 622 | ||
623 | *code = ov9640_codes[index]; | 623 | *code = ov9640_codes[index]; |