diff options
author | Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com> | 2008-10-16 20:04:35 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-10-17 16:31:00 -0400 |
commit | 64decbfe0dca9535a6f9b0c6fa654e3c2eb47877 (patch) | |
tree | 5aa7715183827aa55b0a68f255bff6d37ef530ec /drivers/media/dvb/frontends/cx24116.c | |
parent | a1bc84c083af059cb93d57c9caff7b382fe8b574 (diff) |
V4L/DVB (9275): dvb: input data pointer of cx24116_writeregN() should be const
| drivers/media/dvb/frontends/cx24116.c:573: warning: passing argument 3 of 'cx24116_writeregN' discards qualifiers from pointer target type
Make the `data' input pointer parameter of cx24116_writeregN() const to
kill the warning.
Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/frontends/cx24116.c')
-rw-r--r-- | drivers/media/dvb/frontends/cx24116.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb/frontends/cx24116.c b/drivers/media/dvb/frontends/cx24116.c index fe62f92f6601..b144b308a4dd 100644 --- a/drivers/media/dvb/frontends/cx24116.c +++ b/drivers/media/dvb/frontends/cx24116.c | |||
@@ -215,7 +215,7 @@ static int cx24116_writereg(struct cx24116_state *state, int reg, int data) | |||
215 | 215 | ||
216 | /* Bulk byte writes to a single I2C address, for 32k firmware load */ | 216 | /* Bulk byte writes to a single I2C address, for 32k firmware load */ |
217 | static int cx24116_writeregN(struct cx24116_state *state, int reg, | 217 | static int cx24116_writeregN(struct cx24116_state *state, int reg, |
218 | u8 *data, u16 len) | 218 | const u8 *data, u16 len) |
219 | { | 219 | { |
220 | int ret = -EREMOTEIO; | 220 | int ret = -EREMOTEIO; |
221 | struct i2c_msg msg; | 221 | struct i2c_msg msg; |