summaryrefslogtreecommitdiff
path: root/drivers/net/usb/ch9200.c
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2017-05-12 12:13:26 +0200
committerDavid S. Miller <davem@davemloft.net>2017-05-12 12:15:46 -0400
commitb12ca80ca145cecadf841ba27cc061c510cd97ca (patch)
tree898bb0fc65cafca0b319d1792916b9abc4e8ccdb /drivers/net/usb/ch9200.c
parent75cf067953d5ee543b3bda90bbfcbee5e1f94ae8 (diff)
net: ch9200: add missing USB-descriptor endianness conversions
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 <johan@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/usb/ch9200.c')
-rw-r--r--drivers/net/usb/ch9200.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/usb/ch9200.c b/drivers/net/usb/ch9200.c
index c4f1c363e24b..9df3c1ffff35 100644
--- 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,