diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-09-03 11:01:51 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-09-14 12:13:42 -0400 |
commit | f5ab272bbff2a37d6d8f84328b6d25d0cdbda605 (patch) | |
tree | 86469f70a0aae70823835e48ad121755e41ddcad /drivers | |
parent | 7b9fbc3e30f785412a26819aa4daf0b6c27f6c53 (diff) |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/video/saa7191.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/saa7191.c b/drivers/media/video/saa7191.c index 8615a6081a5d..b4018cce3285 100644 --- a/drivers/media/video/saa7191.c +++ b/drivers/media/video/saa7191.c | |||
@@ -130,7 +130,7 @@ static int saa7191_write_reg(struct i2c_client *client, u8 reg, | |||
130 | 130 | ||
131 | /* the first byte of data must be the first subaddress number (register) */ | 131 | /* the first byte of data must be the first subaddress number (register) */ |
132 | static int saa7191_write_block(struct i2c_client *client, | 132 | static int saa7191_write_block(struct i2c_client *client, |
133 | u8 length, u8 *data) | 133 | u8 length, const u8 *data) |
134 | { | 134 | { |
135 | int i; | 135 | int i; |
136 | int ret; | 136 | int ret; |
@@ -592,7 +592,7 @@ static int saa7191_attach(struct i2c_adapter *adap, int addr, int kind) | |||
592 | if (err) | 592 | if (err) |
593 | goto out_free_decoder; | 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 | if (err) { | 596 | if (err) { |
597 | printk(KERN_ERR "SAA7191 initialization failed\n"); | 597 | printk(KERN_ERR "SAA7191 initialization failed\n"); |
598 | goto out_detach_client; | 598 | goto out_detach_client; |