]> err.no Git - linux-2.6/commitdiff
V4L/DVB (5162): Change VIDIOC_DBG_[SG]_REGISTER ioctls' reg address to 64 bits
authorTrent Piepho <xyzzy@speakeasy.org>
Wed, 31 Jan 2007 01:47:18 +0000 (22:47 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 21 Feb 2007 15:35:10 +0000 (13:35 -0200)
Maybe someday there will be a device with a register address space >
32-bits, or maybe an i2c device which uses a protocol > 4 bytes long to
address its registers.

Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/v4l2-common.c
include/linux/videodev2.h

index d20d4ca5d8a32c86e8b9009194a6ac721f6e7d07..1f359252c8791e0167b4087ca0cabb789ddabb33 100644 (file)
@@ -754,15 +754,17 @@ void v4l_printk_ioctl_arg(char *s,unsigned int cmd, void *arg)
                                p->id,p->index,p->name);
                break;
        }
+#ifdef CONFIG_VIDEO_ADV_DEBUG
        case VIDIOC_DBG_G_REGISTER:
        case VIDIOC_DBG_S_REGISTER:
        {
                struct v4l2_register *p=arg;
-               printk ("%s: i2c_id=%d, reg=%d, val=%d\n", s,
-                               p->i2c_id,p->reg,p->val);
+               printk ("%s: i2c_id=%d, reg=%llu, val=%u\n", s,
+                               p->i2c_id,(unsigned long long)p->reg,p->val);
 
                break;
        }
+#endif
        case VIDIOC_REQBUFS:
        {
                struct v4l2_requestbuffers *p=arg;
index fe6ccdfa9d48b6273c61bc964b3461f0ec508295..ad4de64e04d3a354094da655ad1b422861267db8 100644 (file)
@@ -1276,8 +1276,8 @@ struct v4l2_streamparm
 
 /* VIDIOC_DBG_G_REGISTER and VIDIOC_DBG_S_REGISTER */
 struct v4l2_register {
+       __u64 reg;
        __u32 i2c_id; /* I2C driver ID of the I2C chip, or 0 for the host */
-       __u32 reg;
        __u32 val;
 };