diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2013-10-04 10:01:43 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2013-10-17 04:53:04 -0400 |
commit | 0db3fa2741ad8371c21b3a6785416a4afc0cc1d4 (patch) | |
tree | a902d2b2e4da0c5041270ab1e362b14da0b3060d /drivers/media/dvb-frontends | |
parent | b594a75ecae0c7800265988dba90ce2ae5c418d2 (diff) |
[media] cxd2820r_core: fix sparse warnings
drivers/media/dvb-frontends/cxd2820r_core.c:34:32: error: cannot size expression
drivers/media/dvb-frontends/cxd2820r_core.c:68:32: error: cannot size expression
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Antti Palosaari <crope@iki.fi>
Reviewed-by: Antti Palosaari <crope@iki.fi>
Reviewed-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/dvb-frontends')
-rw-r--r-- | drivers/media/dvb-frontends/cxd2820r_core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/dvb-frontends/cxd2820r_core.c b/drivers/media/dvb-frontends/cxd2820r_core.c index 7ca5c69dd200..d9eeeb1dfa96 100644 --- a/drivers/media/dvb-frontends/cxd2820r_core.c +++ b/drivers/media/dvb-frontends/cxd2820r_core.c | |||
@@ -31,7 +31,7 @@ static int cxd2820r_wr_regs_i2c(struct cxd2820r_priv *priv, u8 i2c, u8 reg, | |||
31 | { | 31 | { |
32 | .addr = i2c, | 32 | .addr = i2c, |
33 | .flags = 0, | 33 | .flags = 0, |
34 | .len = sizeof(buf), | 34 | .len = len + 1, |
35 | .buf = buf, | 35 | .buf = buf, |
36 | } | 36 | } |
37 | }; | 37 | }; |
@@ -65,7 +65,7 @@ static int cxd2820r_rd_regs_i2c(struct cxd2820r_priv *priv, u8 i2c, u8 reg, | |||
65 | }, { | 65 | }, { |
66 | .addr = i2c, | 66 | .addr = i2c, |
67 | .flags = I2C_M_RD, | 67 | .flags = I2C_M_RD, |
68 | .len = sizeof(buf), | 68 | .len = len, |
69 | .buf = buf, | 69 | .buf = buf, |
70 | } | 70 | } |
71 | }; | 71 | }; |