summaryrefslogtreecommitdiffstats
path: root/drivers/media/usb
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2014-11-05 08:55:32 +0100
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2014-11-05 12:08:59 +0100
commitd674a6547c67907ad754a4b5223e2044ea8e0daa (patch)
treedea2f057e574f542428e29f5b88aa28f8afe3cdd /drivers/media/usb
parent[media] stk1160: fix sparse warning (diff)
downloadlinux-d674a6547c67907ad754a4b5223e2044ea8e0daa.tar.xz
linux-d674a6547c67907ad754a4b5223e2044ea8e0daa.zip
[media] cxusb: fix sparse warnings
cxusb.c:1443:32: warning: restricted __le16 degrades to integer cxusb.c:1487:32: warning: restricted __le16 degrades to integer Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/usb')
-rw-r--r--drivers/media/usb/dvb-usb/cxusb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/usb/dvb-usb/cxusb.c b/drivers/media/usb/dvb-usb/cxusb.c
index 8925b3946994..b46f84d49a24 100644
--- a/drivers/media/usb/dvb-usb/cxusb.c
+++ b/drivers/media/usb/dvb-usb/cxusb.c
@@ -1440,7 +1440,7 @@ static int cxusb_tt_ct2_4400_attach(struct dvb_usb_adapter *adap)
si2168_config.ts_mode = SI2168_TS_PARALLEL;
/* CT2-4400v2 TS gets corrupted without this */
- if (d->udev->descriptor.idProduct ==
+ if (le16_to_cpu(d->udev->descriptor.idProduct) ==
USB_PID_TECHNOTREND_TVSTICK_CT2_4400)
si2168_config.ts_mode |= 0x40;
@@ -1484,7 +1484,7 @@ static int cxusb_tt_ct2_4400_attach(struct dvb_usb_adapter *adap)
st->i2c_client_tuner = client_tuner;
/* initialize CI */
- if (d->udev->descriptor.idProduct ==
+ if (le16_to_cpu(d->udev->descriptor.idProduct) ==
USB_PID_TECHNOTREND_CONNECT_CT2_4650_CI) {
memcpy(o, "\xc0\x01", 2);