V4L/DVB: v4l2-subdev.h: fix enum_mbus_fmt prototype
[deliverable/linux.git] / drivers / media / video / ov9640.c
index 36599a65f54851759f47a5a412bd5fdc629b8e1f..58811c044c6a6e75ff4afc54ef35419ee62b0717 100644 (file)
@@ -614,10 +614,10 @@ static int ov9640_try_fmt(struct v4l2_subdev *sd,
        return 0;
 }
 
-static int ov9640_enum_fmt(struct v4l2_subdev *sd, int index,
+static int ov9640_enum_fmt(struct v4l2_subdev *sd, unsigned int index,
                           enum v4l2_mbus_pixelcode *code)
 {
-       if ((unsigned int)index >= ARRAY_SIZE(ov9640_codes))
+       if (index >= ARRAY_SIZE(ov9640_codes))
                return -EINVAL;
 
        *code = ov9640_codes[index];
This page took 0.025656 seconds and 5 git commands to generate.