summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/saa7191.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2007-09-03 16:01:51 +0100
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-09-03 16:01:51 +0100
commite1c0c4d08cfdec10669c7e16b4cb2f3210f56c7f (patch)
tree6de79339ca72877838bdb4c9d896cda7781d529d /linux/drivers/media/video/saa7191.c
parent47dd003d1a038ea030106ed096c7d3d839ac9d97 (diff)
downloadmediapointer-dvb-s2-e1c0c4d08cfdec10669c7e16b4cb2f3210f56c7f.tar.gz
mediapointer-dvb-s2-e1c0c4d08cfdec10669c7e16b4cb2f3210f56c7f.tar.bz2
Fix a warning at saa7191_probe
From: Mauro Carvalho Chehab <mchehab@infradead.org> 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>
Diffstat (limited to 'linux/drivers/media/video/saa7191.c')
-rw-r--r--linux/drivers/media/video/saa7191.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/drivers/media/video/saa7191.c b/linux/drivers/media/video/saa7191.c
index 183d15686..c4f169c95 100644
--- a/linux/drivers/media/video/saa7191.c
+++ b/linux/drivers/media/video/saa7191.c
@@ -131,7 +131,7 @@ static int saa7191_write_reg(struct i2c_client *client, u8 reg,
/* the first byte of data must be the first subaddress number (register) */
static int saa7191_write_block(struct i2c_client *client,
- u8 length, u8 *data)
+ u8 length, const u8 *data)
{
int i;
int ret;
@@ -593,7 +593,7 @@ static int saa7191_attach(struct i2c_adapter *adap, int addr, int kind)
if (err)
goto out_free_decoder;
- err = saa7191_write_block(client, sizeof(initseq), (u8 *)initseq);
+ err = saa7191_write_block(client, sizeof(initseq), initseq);
if (err) {
printk(KERN_ERR "SAA7191 initialization failed\n");
goto out_detach_client;