From: Hans Verkuil Date: Tue, 4 Sep 2012 13:26:45 +0000 (-0300) Subject: [media] fsl-viu: fix compiler warning X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=99b32b24889a4671244f4ef99fed779e017ce8be;p=openwrt%2Fstaging%2Fblogic.git [media] fsl-viu: fix compiler warning drivers/media/platform/fsl-viu.c: In function 'vidioc_s_fbuf': drivers/media/platform/fsl-viu.c:867:32: warning: initialization discards 'const' qualifier from pointer target type [enabled by default] This is fall-out from this commit: commit e6eb28c2207b9397d0ab56e238865a4ee95b7ef9 Author: Hans Verkuil [media] v4l2: make vidioc_s_fbuf const Signed-off-by: Hans Verkuil Acked-by: Anatolij Gustschin Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/fsl-viu.c b/drivers/media/platform/fsl-viu.c index 897250b88647..31ac4dc69247 100644 --- a/drivers/media/platform/fsl-viu.c +++ b/drivers/media/platform/fsl-viu.c @@ -864,7 +864,7 @@ int vidioc_s_fbuf(struct file *file, void *priv, const struct v4l2_framebuffer * { struct viu_fh *fh = priv; struct viu_dev *dev = fh->dev; - struct v4l2_framebuffer *fb = arg; + const struct v4l2_framebuffer *fb = arg; struct viu_fmt *fmt; if (!capable(CAP_SYS_ADMIN) && !capable(CAP_SYS_RAWIO))