Skip to content

Commit

Permalink
[media] media: pxa_camera: fix const cropping related warnings
Browse files Browse the repository at this point in the history
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 <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Guennadi Liakhovetski authored and Mauro Carvalho Chehab committed Nov 22, 2012
1 parent 3ecb091 commit 448a61f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/media/platform/soc_camera/pxa_camera.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 448a61f

Please sign in to comment.