diff options
Diffstat (limited to 'drivers/media/dvb/frontends/or51211.c')
-rw-r--r-- | drivers/media/dvb/frontends/or51211.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/dvb/frontends/or51211.c b/drivers/media/dvb/frontends/or51211.c index 7eaa4765593f..6afe12aaca4e 100644 --- a/drivers/media/dvb/frontends/or51211.c +++ b/drivers/media/dvb/frontends/or51211.c | |||
@@ -69,7 +69,7 @@ struct or51211_state { | |||
69 | u32 current_frequency; | 69 | u32 current_frequency; |
70 | }; | 70 | }; |
71 | 71 | ||
72 | static int i2c_writebytes (struct or51211_state* state, u8 reg, u8 *buf, | 72 | static int i2c_writebytes (struct or51211_state* state, u8 reg, const u8 *buf, |
73 | int len) | 73 | int len) |
74 | { | 74 | { |
75 | int err; | 75 | int err; |
@@ -77,7 +77,7 @@ static int i2c_writebytes (struct or51211_state* state, u8 reg, u8 *buf, | |||
77 | msg.addr = reg; | 77 | msg.addr = reg; |
78 | msg.flags = 0; | 78 | msg.flags = 0; |
79 | msg.len = len; | 79 | msg.len = len; |
80 | msg.buf = buf; | 80 | msg.buf = (u8 *)buf; |
81 | 81 | ||
82 | if ((err = i2c_transfer (state->i2c, &msg, 1)) != 1) { | 82 | if ((err = i2c_transfer (state->i2c, &msg, 1)) != 1) { |
83 | printk(KERN_WARNING "or51211: i2c_writebytes error " | 83 | printk(KERN_WARNING "or51211: i2c_writebytes error " |