projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
888bd5d
)
[media] cxusb: fix sparse warning
author
Hans Verkuil
<hans.verkuil@cisco.com>
Thu, 21 Aug 2014 14:55:00 +0000
(11:55 -0300)
committer
Mauro Carvalho Chehab
<m.chehab@samsung.com>
Wed, 3 Sep 2014 13:33:20 +0000
(10:33 -0300)
drivers/media/usb/dvb-usb/cxusb.c:178:40: warning: restricted __le16 degrades to integer
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/usb/dvb-usb/cxusb.c
patch
|
blob
|
history
diff --git
a/drivers/media/usb/dvb-usb/cxusb.c
b/drivers/media/usb/dvb-usb/cxusb.c
index 187d52942ebb928e274efd0c0d6449740263eb5a..356abb369c20b6cd07649fd1f75252f939d0a6e0 100644
(file)
--- a/
drivers/media/usb/dvb-usb/cxusb.c
+++ b/
drivers/media/usb/dvb-usb/cxusb.c
@@
-176,7
+176,7
@@
static int cxusb_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msg[],
for (i = 0; i < num; i++) {
- if (
d->udev->descriptor.idVendor
== USB_VID_MEDION)
+ if (
le16_to_cpu(d->udev->descriptor.idVendor)
== USB_VID_MEDION)
switch (msg[i].addr) {
case 0x63:
cxusb_gpio_tuner(d, 0);