V4L/DVB (9275): dvb: input data pointer of cx24116_writeregN() should be const
authorGeert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Fri, 17 Oct 2008 00:04:35 +0000 (21:04 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 17 Oct 2008 20:31:00 +0000 (17:31 -0300)
| 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>
drivers/media/dvb/frontends/cx24116.c

index fe62f92f66010d17b21035a94809d1bb4199049d..b144b308a4dd336854226eb1c5ef2484b598b0c2 100644 (file)
@@ -215,7 +215,7 @@ static int cx24116_writereg(struct cx24116_state *state, int reg, int data)
 
 /* Bulk byte writes to a single I2C address, for 32k firmware load */
 static int cx24116_writeregN(struct cx24116_state *state, int reg,
-       u8 *data, u16 len)
+                            const u8 *data, u16 len)
 {
        int ret = -EREMOTEIO;
        struct i2c_msg msg;