projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04ae4cf
)
[media] sn9c20x: the reg->size field wasn't filled in
author
Hans Verkuil
<hans.verkuil@cisco.com>
Wed, 29 May 2013 10:00:05 +0000
(07:00 -0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Mon, 17 Jun 2013 11:55:34 +0000
(08:55 -0300)
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/gspca/sn9c20x.c
patch
|
blob
|
history
diff --git
a/drivers/media/usb/gspca/sn9c20x.c
b/drivers/media/usb/gspca/sn9c20x.c
index 23b71f9f594200b9dfeb7d79ae6b8ed429234105..f4453d52801b94140cc1201f437ba68fec694095 100644
(file)
--- a/
drivers/media/usb/gspca/sn9c20x.c
+++ b/
drivers/media/usb/gspca/sn9c20x.c
@@
-1557,6
+1557,7
@@
static int sd_dbg_g_register(struct gspca_dev *gspca_dev,
{
struct sd *sd = (struct sd *) gspca_dev;
+ reg->size = 1;
switch (reg->match.addr) {
case 0:
if (reg->reg < 0x1000 || reg->reg > 0x11ff)
@@
-1568,6
+1569,7
@@
static int sd_dbg_g_register(struct gspca_dev *gspca_dev,
if (sd->sensor >= SENSOR_MT9V011 &&
sd->sensor <= SENSOR_MT9M112) {
i2c_r2(gspca_dev, reg->reg, (u16 *) ®->val);
+ reg->size = 2;
} else {
i2c_r1(gspca_dev, reg->reg, (u8 *) ®->val);
}