From: Guennadi Liakhovetski Date: Fri, 28 Sep 2012 10:27:30 +0000 (-0300) Subject: [media] media: pxa_camera: fix const cropping related warnings X-Git-Tag: MMI-PSA29.97-13-9~15085^2~32 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=448a61f09e319c54bf149a20d9c8f63d5242a936;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [media] media: pxa_camera: fix const cropping related warnings A recent commit "[media] v4l2: make vidioc_s_crop const" introduced warnings in pxa_camera.c. Fix them by adjusting a function declaration. Signed-off-by: Guennadi Liakhovetski Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/soc_camera/pxa_camera.c b/drivers/media/platform/soc_camera/pxa_camera.c index 1e3776d08dac..3434ffe79c6e 100644 --- a/drivers/media/platform/soc_camera/pxa_camera.c +++ b/drivers/media/platform/soc_camera/pxa_camera.c @@ -1337,9 +1337,9 @@ static int pxa_camera_check_frame(u32 width, u32 height) } static int pxa_camera_set_crop(struct soc_camera_device *icd, - struct v4l2_crop *a) + const struct v4l2_crop *a) { - struct v4l2_rect *rect = &a->c; + const struct v4l2_rect *rect = &a->c; struct device *dev = icd->parent; struct soc_camera_host *ici = to_soc_camera_host(dev); struct pxa_camera_dev *pcdev = ici->priv;