提交 64decbfe 编写于 作者: G Geert Uytterhoeven 提交者: Mauro Carvalho Chehab

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: NGeert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 a1bc84c0
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册