Skip to content

Commit

Permalink
V4L/DVB (9275): dvb: input data pointer of cx24116_writeregN() should…
Browse files Browse the repository at this point in the history
… 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>
  • Loading branch information
Geert Uytterhoeven authored and Mauro Carvalho Chehab committed Oct 17, 2008
1 parent a1bc84c commit 64decbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/dvb/frontends/cx24116.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 64decbf

Please sign in to comment.