[media] ioctl numbers are unsigned int
authorMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 26 Mar 2013 11:04:52 +0000 (08:04 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 29 Mar 2013 11:18:36 +0000 (08:18 -0300)
ioctl's number is unsigned int. Fix it at vidioc_default.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/pci/cx18/cx18-ioctl.c
drivers/media/pci/ivtv/ivtv-ioctl.c
drivers/media/pci/meye/meye.c
drivers/media/platform/davinci/vpfe_capture.c
drivers/media/radio/radio-si4713.c
drivers/staging/media/solo6x10/solo6x10-v4l2-enc.c
include/media/v4l2-ioctl.h

index 7dbd5a9..aee7b6d 100644 (file)
@@ -1110,7 +1110,7 @@ static int cx18_log_status(struct file *file, void *fh)
 }
 
 static long cx18_default(struct file *file, void *fh, bool valid_prio,
-                                                       int cmd, void *arg)
+                        unsigned int cmd, void *arg)
 {
        struct cx18 *cx = fh2id(fh)->cx;
 
index 50379b2..9cbbce0 100644 (file)
@@ -1807,7 +1807,7 @@ static int ivtv_decoder_ioctls(struct file *filp, unsigned int cmd, void *arg)
 }
 
 static long ivtv_default(struct file *file, void *fh, bool valid_prio,
-                        int cmd, void *arg)
+                        unsigned int cmd, void *arg)
 {
        struct ivtv *itv = fh2id(fh)->itv;
 
index 7859c43..2381b05 100644 (file)
@@ -1410,7 +1410,7 @@ static int vidioc_streamoff(struct file *file, void *fh, enum v4l2_buf_type i)
 }
 
 static long vidioc_default(struct file *file, void *fh, bool valid_prio,
-                                               int cmd, void *arg)
+                          unsigned int cmd, void *arg)
 {
        switch (cmd) {
        case MEYEIOC_G_PARAMS:
index 20db8a0..8c50d30 100644 (file)
@@ -1686,7 +1686,7 @@ unlock_out:
 
 
 static long vpfe_param_handler(struct file *file, void *priv,
-               bool valid_prio, int cmd, void *param)
+               bool valid_prio, unsigned int cmd, void *param)
 {
        struct vpfe_device *vpfe_dev = video_drvdata(file);
        int ret = 0;
index 2a2d21e..38b3f15 100644 (file)
@@ -222,7 +222,7 @@ static int radio_si4713_s_frequency(struct file *file, void *p,
 }
 
 static long radio_si4713_default(struct file *file, void *p,
-                                bool valid_prio, int cmd, void *arg)
+                                bool valid_prio, unsigned int cmd, void *arg)
 {
        return v4l2_device_call_until_err(get_v4l2_dev(file), 0, core,
                                          ioctl, cmd, arg);
index 39a8fb2..6c7d20f 100644 (file)
@@ -1021,7 +1021,7 @@ static int solo_s_parm(struct file *file, void *priv,
 }
 
 static long solo_enc_default(struct file *file, void *fh,
-                       bool valid_prio, int cmd, void *arg)
+                       bool valid_prio, unsigned int cmd, void *arg)
 {
        struct solo_enc_dev *solo_enc = video_drvdata(file);
        struct solo_dev *solo_dev = solo_enc->solo_dev;
index 75a7dfc..b273f0e 100644 (file)
@@ -275,7 +275,7 @@ struct v4l2_ioctl_ops {
 
        /* For other private ioctls */
        long (*vidioc_default)         (struct file *file, void *fh,
-                                       bool valid_prio, int cmd, void *arg);
+                                       bool valid_prio, unsigned int cmd, void *arg);
 };