]> err.no Git - linux-2.6/commitdiff
V4L/DVB (4257): Fix 64-bit compile warnings.
authorHans Verkuil <hverkuil@xs4all.nl>
Mon, 26 Jun 2006 12:31:18 +0000 (09:31 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Tue, 27 Jun 2006 03:17:39 +0000 (00:17 -0300)
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/cx2341x.c
drivers/media/video/saa7134/saa6752hs.c
include/media/cx2341x.h

index 01b22eab572574827fc0de12c6e580f8a0c84061..c98740979b60ed79edb22bc6664ee9641a743244 100644 (file)
@@ -601,7 +601,7 @@ static void cx2341x_calc_audio_properties(struct cx2341x_mpeg_params *params)
 }
 
 int cx2341x_ext_ctrls(struct cx2341x_mpeg_params *params,
-                 struct v4l2_ext_controls *ctrls, int cmd)
+                 struct v4l2_ext_controls *ctrls, unsigned int cmd)
 {
        int err = 0;
        int i;
index de7b9e6e932a9b70aec1e53e2ff5d3ff985369c9..afc8f352b8e713ea66c9a15a50f0fcb05f24ba31 100644 (file)
@@ -432,10 +432,10 @@ static void saa6752hs_old_set_params(struct i2c_client* client,
 }
 
 static int handle_ctrl(struct saa6752hs_mpeg_params *params,
-               struct v4l2_ext_control *ctrl, int cmd)
+               struct v4l2_ext_control *ctrl, unsigned int cmd)
 {
        int old = 0, new;
-       int set = cmd == VIDIOC_S_EXT_CTRLS;
+       int set = (cmd == VIDIOC_S_EXT_CTRLS);
 
        new = ctrl->value;
        switch (ctrl->id) {
index 074c4008ad5296fa5f73c5c21e67dd3d42fd69d2..e1cbf79741be5ba59beba80b2cad1ddb7265c78c 100644 (file)
@@ -89,7 +89,7 @@ int cx2341x_ctrl_query(struct cx2341x_mpeg_params *params,
                struct v4l2_queryctrl *qctrl);
 const char **cx2341x_ctrl_get_menu(u32 id);
 int cx2341x_ext_ctrls(struct cx2341x_mpeg_params *params,
-               struct v4l2_ext_controls *ctrls, int cmd);
+               struct v4l2_ext_controls *ctrls, unsigned int cmd);
 void cx2341x_fill_defaults(struct cx2341x_mpeg_params *p);
 void cx2341x_log_status(struct cx2341x_mpeg_params *p, int cardid);