Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=f5ab272bbff2a37d6d8f84328b6d25d0cdbda605
Commit:     f5ab272bbff2a37d6d8f84328b6d25d0cdbda605
Parent:     7b9fbc3e30f785412a26819aa4daf0b6c27f6c53
Author:     Mauro Carvalho Chehab <[EMAIL PROTECTED]>
AuthorDate: Mon Sep 3 12:01:51 2007 -0300
Committer:  Mauro Carvalho Chehab <[EMAIL PROTECTED]>
CommitDate: Fri Sep 14 13:13:42 2007 -0300

    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 <[EMAIL PROTECTED]>
---
 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 8615a60..b4018cc 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,
 
 /* 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;
@@ -592,7 +592,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;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to