net: ch9200: add missing USB-descriptor endianness conversions
Subsystems (3)
PATCH 1/1 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 <[email protected]>
--- drivers/net/usb/ch9200.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/usb/ch9200.c +2 -2
@@ -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,
Signature · 1 line
2.13.0
From: Johan Hovold <[email protected]>
Date: Fri, 12 May 2017 12:13:26 +0200
Quoted 4 lines
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]>
Applied.