[media] usbvision: add missing USB-descriptor endianness conversions
authorJohan Hovold <johan@kernel.org>
Fri, 12 May 2017 10:01:30 +0000 (07:01 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 6 Jun 2017 10:43:02 +0000 (07:43 -0300)
Add the missing endianness conversions to a debug call printing the
USB device-descriptor idVendor and idProduct fields during probe.

Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/usb/usbvision/usbvision-video.c

index f9c3325aa4d4194d23353a45823c1570a98dc66e..756322c4ac053a86bd70cf54cad952cc12778389 100644 (file)
@@ -1427,8 +1427,8 @@ static int usbvision_probe(struct usb_interface *intf,
        int model, i, ret;
 
        PDEBUG(DBG_PROBE, "VID=%#04x, PID=%#04x, ifnum=%u",
-                               dev->descriptor.idVendor,
-                               dev->descriptor.idProduct, ifnum);
+                               le16_to_cpu(dev->descriptor.idVendor),
+                               le16_to_cpu(dev->descriptor.idProduct), ifnum);
 
        model = devid->driver_info;
        if (model < 0 || model >= usbvision_device_data_size) {