Commit f5ab272b authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

V4L/DVB (6148): Fix a warning at saa7191_probe

saa7191.c: In function 'saa7191_probe':
saa7191.c:596: warning: passing argument 3 of
	'saa7191_write_block' discards qualifiers from pointer target type
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent 7b9fbc3e
...@@ -130,7 +130,7 @@ static int saa7191_write_reg(struct i2c_client *client, u8 reg, ...@@ -130,7 +130,7 @@ static int saa7191_write_reg(struct i2c_client *client, u8 reg,
/* the first byte of data must be the first subaddress number (register) */ /* the first byte of data must be the first subaddress number (register) */
static int saa7191_write_block(struct i2c_client *client, static int saa7191_write_block(struct i2c_client *client,
u8 length, u8 *data) u8 length, const u8 *data)
{ {
int i; int i;
int ret; int ret;
...@@ -592,7 +592,7 @@ static int saa7191_attach(struct i2c_adapter *adap, int addr, int kind) ...@@ -592,7 +592,7 @@ static int saa7191_attach(struct i2c_adapter *adap, int addr, int kind)
if (err) if (err)
goto out_free_decoder; goto out_free_decoder;
err = saa7191_write_block(client, sizeof(initseq), (u8 *)initseq); err = saa7191_write_block(client, sizeof(initseq), initseq);
if (err) { if (err) {
printk(KERN_ERR "SAA7191 initialization failed\n"); printk(KERN_ERR "SAA7191 initialization failed\n");
goto out_detach_client; goto out_detach_client;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment