Write-only ioctls should have a const argument in the ioctl op.
Do this conversion for vidioc_s_fbuf.
Adding const for write-only ioctls was decided during the 2012 Media Workshop.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
        return 0;
 }
 
-static int vidioc_s_fbuf(struct file *file, void *fh, struct v4l2_framebuffer *fb)
+static int vidioc_s_fbuf(struct file *file, void *fh, const struct v4l2_framebuffer *fb)
 {
        struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev;
        struct saa7146_vv *vv = dev->vv_data;
 
 }
 
 static int bttv_s_fbuf(struct file *file, void *f,
-                               struct v4l2_framebuffer *fb)
+                               const struct v4l2_framebuffer *fb)
 {
        struct bttv_fh *fh = f;
        struct bttv *btv = fh->btv;
 
        return 0;
 }
 
-static int ivtv_s_fbuf(struct file *file, void *fh, struct v4l2_framebuffer *fb)
+static int ivtv_s_fbuf(struct file *file, void *fh, const struct v4l2_framebuffer *fb)
 {
        struct ivtv_open_id *id = fh2id(fh);
        struct ivtv *itv = id->itv;
        itv->osd_chroma_key_state = (fb->flags & V4L2_FBUF_FLAG_CHROMAKEY) != 0;
        ivtv_set_osd_alpha(itv);
        yi->track_osd = (fb->flags & V4L2_FBUF_FLAG_OVERLAY) != 0;
-       return ivtv_g_fbuf(file, fh, fb);
+       return 0;
 }
 
 static int ivtv_overlay(struct file *file, void *fh, unsigned int on)
 
 }
 
 static int saa7134_s_fbuf(struct file *file, void *f,
-                                       struct v4l2_framebuffer *fb)
+                                       const struct v4l2_framebuffer *fb)
 {
        struct saa7134_fh *fh = f;
        struct saa7134_dev *dev = fh->dev;
 
 }
 
 static int zoran_s_fbuf(struct file *file, void *__fh,
-               struct v4l2_framebuffer *fb)
+               const struct v4l2_framebuffer *fb)
 {
        struct zoran_fh *fh = __fh;
        struct zoran *zr = fh->zr;
 
        return 0;
 }
 
-int vidioc_s_fbuf(struct file *file, void *priv, struct v4l2_framebuffer *arg)
+int vidioc_s_fbuf(struct file *file, void *priv, const struct v4l2_framebuffer *arg)
 {
        struct viu_fh  *fh = priv;
        struct viu_dev *dev = fh->dev;
 
 }
 
 static int vidioc_s_fbuf(struct file *file, void *fh,
-                               struct v4l2_framebuffer *a)
+                               const struct v4l2_framebuffer *a)
 {
        int enable = 0;
        struct omap_overlay *ovl;
 
        int (*vidioc_g_fbuf)   (struct file *file, void *fh,
                                struct v4l2_framebuffer *a);
        int (*vidioc_s_fbuf)   (struct file *file, void *fh,
-                               struct v4l2_framebuffer *a);
+                               const struct v4l2_framebuffer *a);
 
                /* Stream on/off */
        int (*vidioc_streamon) (struct file *file, void *fh, enum v4l2_buf_type i);