[media] au0828: set reg->size
authorHans Verkuil <hans.verkuil@cisco.com>
Wed, 29 May 2013 10:00:03 +0000 (07:00 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 17 Jun 2013 11:55:00 +0000 (08:55 -0300)
The size field wasn't filled in.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/au0828/au0828-video.c

index 4944a365570a008b4bd876d2b30f4bba2f5afe5c..f6154546b5c0b3d9a70fad164b07bb5e3d27e134 100644 (file)
@@ -1759,6 +1759,7 @@ static int vidioc_g_register(struct file *file, void *priv,
        struct au0828_dev *dev = fh->dev;
 
        reg->val = au0828_read(dev, reg->reg);
+       reg->size = 1;
        return 0;
 }