diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2014-08-21 00:22:18 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-09-03 14:39:45 +0200 |
commit | fba16a1eee5c2d93d010a5b7c41d9c4b478c7eb8 (patch) | |
tree | 7043c9660107fb20df7d01a33f5bae69b206e337 /drivers/media/dvb-frontends/bcm3510.c | |
parent | [media] wl128x: fix sparse warnings (diff) | |
download | linux-fba16a1eee5c2d93d010a5b7c41d9c4b478c7eb8.tar.xz linux-fba16a1eee5c2d93d010a5b7c41d9c4b478c7eb8.zip |
[media] bcm3510: fix sparse warnings
drivers/media/dvb-frontends/bcm3510.c:646:24: warning: cast to restricted __le16
drivers/media/dvb-frontends/bcm3510.c:647:24: warning: cast to restricted __le16
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/dvb-frontends/bcm3510.c')
-rw-r--r-- | drivers/media/dvb-frontends/bcm3510.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/dvb-frontends/bcm3510.c b/drivers/media/dvb-frontends/bcm3510.c index 39a29dd29519..998d15031461 100644 --- a/drivers/media/dvb-frontends/bcm3510.c +++ b/drivers/media/dvb-frontends/bcm3510.c @@ -643,8 +643,8 @@ static int bcm3510_download_firmware(struct dvb_frontend* fe) b = fw->data; for (i = 0; i < fw->size;) { - addr = le16_to_cpu( *( (u16 *)&b[i] ) ); - len = le16_to_cpu( *( (u16 *)&b[i+2] ) ); + addr = le16_to_cpu(*((__le16 *)&b[i])); + len = le16_to_cpu(*((__le16 *)&b[i+2])); deb_info("firmware chunk, addr: 0x%04x, len: 0x%04x, total length: 0x%04zx\n",addr,len,fw->size); if ((ret = bcm3510_write_ram(st,addr,&b[i+4],len)) < 0) { err("firmware download failed: %d\n",ret); |