aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/af9013.c
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2008-10-06 12:57:45 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-10-13 05:15:48 -0400
commit541dfa87f9285b2ff7e703a5eab81ad821de7f6e (patch)
tree9bdc5232cfb2144da9c74b69b199411b47c7f98f /drivers/media/dvb/frontends/af9013.c
parentd4e80beae1eef31df5749516ecb36f0fb366daf1 (diff)
V4L/DVB (9146): af901x: fix some compiler errors and warnings
- cast firmware data to u8 - remove cpu_to_le16 from switch-case label Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/frontends/af9013.c')
-rw-r--r--drivers/media/dvb/frontends/af9013.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb/frontends/af9013.c b/drivers/media/dvb/frontends/af9013.c
index 0d2a0ad2bc4d..21c1060cf10e 100644
--- a/drivers/media/dvb/frontends/af9013.c
+++ b/drivers/media/dvb/frontends/af9013.c
@@ -1490,7 +1490,7 @@ static int af9013_download_firmware(struct af9013_state *state)
1490 if (i == packets) /* set size of the last packet */ 1490 if (i == packets) /* set size of the last packet */
1491 len = remainder; 1491 len = remainder;
1492 1492
1493 data = (fw->data + i * FW_PACKET_MAX_DATA); 1493 data = (u8 *)(fw->data + i * FW_PACKET_MAX_DATA);
1494 ret = af9013_write_ofsm_regs(state, addr, data, len); 1494 ret = af9013_write_ofsm_regs(state, addr, data, len);
1495 addr += FW_PACKET_MAX_DATA; 1495 addr += FW_PACKET_MAX_DATA;
1496 1496