projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75cf067
)
net: ch9200: add missing USB-descriptor endianness conversions
author
Johan Hovold
<
[email protected]
>
Fri, 12 May 2017 10:13:26 +0000
(12:13 +0200)
committer
David S. Miller
<
[email protected]
>
Fri, 12 May 2017 16:15:46 +0000
(12:15 -0400)
Add the missing endianness conversions to a debug statement printing
the USB device-descriptor idVendor and idProduct fields during probe.
Signed-off-by: Johan Hovold <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/usb/ch9200.c
patch
|
blob
|
history
diff --git
a/drivers/net/usb/ch9200.c
b/drivers/net/usb/ch9200.c
index c4f1c363e24b89404c6834312074f8a4451ded50..9df3c1ffff355c491ab7f0a38bdddd0276cfff92 100644
(file)
--- a/
drivers/net/usb/ch9200.c
+++ b/
drivers/net/usb/ch9200.c
@@
-310,8
+310,8
@@
static int get_mac_address(struct usbnet *dev, unsigned char *data)
int rd_mac_len = 0;
netdev_dbg(dev->net, "get_mac_address:\n\tusbnet VID:%0x PID:%0x\n",
-
dev->udev->descriptor.idVendor
,
-
dev->udev->descriptor.idProduct
);
+
le16_to_cpu(dev->udev->descriptor.idVendor)
,
+
le16_to_cpu(dev->udev->descriptor.idProduct)
);
memset(mac_addr, 0, sizeof(mac_addr));
rd_mac_len = control_read(dev, REQUEST_READ, 0,