From: Laurent Pinchart Date: Fri, 12 Oct 2012 14:28:40 +0000 (-0300) Subject: [media] omap3isp: video: Fix warning caused by bad vidioc_s_crop prototype X-Git-Tag: v3.7-rc8~2^2~27 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1fa48cd5c4f1403db1f5a55ea3c346a33f39a33a;p=platform%2Fkernel%2Flinux-exynos.git [media] omap3isp: video: Fix warning caused by bad vidioc_s_crop prototype Commit 4f996594 ("v4l2: make vidioc_s_crop const") modified the vidioc_s_crop operation prototype but forgot to update the OMAP3 ISP driver. Add a const keyword to fix the function prototype. Signed-off-by: Laurent Pinchart Acked-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/omap3isp/ispvideo.c b/drivers/media/platform/omap3isp/ispvideo.c index a0b737fe..75cd309 100644 --- a/drivers/media/platform/omap3isp/ispvideo.c +++ b/drivers/media/platform/omap3isp/ispvideo.c @@ -792,7 +792,7 @@ isp_video_get_crop(struct file *file, void *fh, struct v4l2_crop *crop) } static int -isp_video_set_crop(struct file *file, void *fh, struct v4l2_crop *crop) +isp_video_set_crop(struct file *file, void *fh, const struct v4l2_crop *crop) { struct isp_video *video = video_drvdata(file); struct v4l2_subdev *subdev;