X-Git-Url: http://ftp.safe.ca/?p=safe%2Fjmp%2Flinux-2.6;a=blobdiff_plain;f=drivers%2Fmedia%2Fvideo%2Fov772x.c;h=34034a710214e39b30f6f194f5cde31383aa9636;hp=c33acc94b7472c5c6fdaec46b26d1690fed541d7;hb=e620d1e39aa33b43bed96aa7f2ebbc88914aed58;hpb=d2dd328b7f7bc6cebe167648289337755944ad2a diff --git a/drivers/media/video/ov772x.c b/drivers/media/video/ov772x.c index c33acc9..34034a7 100644 --- a/drivers/media/video/ov772x.c +++ b/drivers/media/video/ov772x.c @@ -1092,10 +1092,10 @@ static struct v4l2_subdev_core_ops ov772x_subdev_core_ops = { #endif }; -static int ov772x_enum_fmt(struct v4l2_subdev *sd, int index, +static int ov772x_enum_fmt(struct v4l2_subdev *sd, unsigned int index, enum v4l2_mbus_pixelcode *code) { - if ((unsigned int)index >= ARRAY_SIZE(ov772x_cfmts)) + if (index >= ARRAY_SIZE(ov772x_cfmts)) return -EINVAL; *code = ov772x_cfmts[index].code;