diff options
author | David Woodhouse <dwmw2@infradead.org> | 2008-05-24 00:12:23 +0100 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2008-07-10 14:26:31 +0100 |
commit | bc179153ae2334efe28cf4f3300e024da7d83753 (patch) | |
tree | 9c300ab3a81d43da5d30d633106626f82a58d564 /drivers/media/dvb/frontends/or51211.c | |
parent | 99b6e4f511e38ea7beae35ee1b46b440151ce727 (diff) | |
download | linux-bc179153ae2334efe28cf4f3300e024da7d83753.tar.gz linux-bc179153ae2334efe28cf4f3300e024da7d83753.tar.bz2 linux-bc179153ae2334efe28cf4f3300e024da7d83753.zip |
dvb frontends: treat firmware data as const
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
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 { u32 current_frequency; }; -static int i2c_writebytes (struct or51211_state* state, u8 reg, u8 *buf, +static int i2c_writebytes (struct or51211_state* state, u8 reg, const u8 *buf, int len) { int err; @@ -77,7 +77,7 @@ static int i2c_writebytes (struct or51211_state* state, u8 reg, u8 *buf, msg.addr = reg; msg.flags = 0; msg.len = len; - msg.buf = buf; + msg.buf = (u8 *)buf; if ((err = i2c_transfer (state->i2c, &msg, 1)) != 1) { printk(KERN_WARNING "or51211: i2c_writebytes error " |