aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2013-10-04 10:01:42 -0400
committerMauro Carvalho Chehab <m.chehab@samsung.com>2013-10-15 11:55:56 -0400
commit84eeb0b4c7927feb69a3b4dc0a1ee201893d9137 (patch)
treeb0532f8f58a662d122cce58f8cfa7d56e591bbd7 /drivers/media
parent19227efb9ba40801a7d34c88a63c1f08a8382d27 (diff)
[media] tuner-xs2028.c: fix sparse warnings
drivers/media/tuners/tuner-xc2028.c:575:24: warning: cast to restricted __le16 drivers/media/tuners/tuner-xc2028.c:686:21: warning: cast to restricted __le16 Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Reviewed-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/tuners/tuner-xc2028.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/tuners/tuner-xc2028.c b/drivers/media/tuners/tuner-xc2028.c
index 878d2c4d9e8e..e287a7417319 100644
--- a/drivers/media/tuners/tuner-xc2028.c
+++ b/drivers/media/tuners/tuner-xc2028.c
@@ -572,7 +572,7 @@ static int load_firmware(struct dvb_frontend *fe, unsigned int type,
572 return -EINVAL; 572 return -EINVAL;
573 } 573 }
574 574
575 size = le16_to_cpu(*(__u16 *) p); 575 size = le16_to_cpu(*(__le16 *) p);
576 p += sizeof(size); 576 p += sizeof(size);
577 577
578 if (size == 0xffff) 578 if (size == 0xffff)
@@ -683,7 +683,7 @@ static int load_scode(struct dvb_frontend *fe, unsigned int type,
683 /* 16 SCODE entries per file; each SCODE entry is 12 bytes and 683 /* 16 SCODE entries per file; each SCODE entry is 12 bytes and
684 * has a 2-byte size header in the firmware format. */ 684 * has a 2-byte size header in the firmware format. */
685 if (priv->firm[pos].size != 14 * 16 || scode >= 16 || 685 if (priv->firm[pos].size != 14 * 16 || scode >= 16 ||
686 le16_to_cpu(*(__u16 *)(p + 14 * scode)) != 12) 686 le16_to_cpu(*(__le16 *)(p + 14 * scode)) != 12)
687 return -EINVAL; 687 return -EINVAL;
688 p += 14 * scode + 2; 688 p += 14 * scode + 2;
689 } 689 }