X-Git-Url: http://ftp.safe.ca/?p=safe%2Fjmp%2Flinux-2.6;a=blobdiff_plain;f=drivers%2Fmedia%2Fvideo%2Fov9640.c;h=58811c044c6a6e75ff4afc54ef35419ee62b0717;hp=36599a65f54851759f47a5a412bd5fdc629b8e1f;hb=3805f201934e5384f6e941222dc1968cb638a88c;hpb=cf69b808caf8e729949cf20446bec0b9ace033b7 diff --git a/drivers/media/video/ov9640.c b/drivers/media/video/ov9640.c index 36599a6..58811c0 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, 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];