Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Mauro Carvalho Chehab <mchehab@infradead.org>

+2 -2
+2 -2
drivers/media/video/saa7191.c
··· 130 130 131 131 /* the first byte of data must be the first subaddress number (register) */ 132 132 static int saa7191_write_block(struct i2c_client *client, 133 - u8 length, u8 *data) 133 + u8 length, const u8 *data) 134 134 { 135 135 int i; 136 136 int ret; ··· 592 592 if (err) 593 593 goto out_free_decoder; 594 594 595 - err = saa7191_write_block(client, sizeof(initseq), (u8 *)initseq); 595 + err = saa7191_write_block(client, sizeof(initseq), initseq); 596 596 if (err) { 597 597 printk(KERN_ERR "SAA7191 initialization failed\n"); 598 598 goto out_detach_client;