Commit ab64a589 authored by Johan Hovold's avatar Johan Hovold Committed by Mauro Carvalho Chehab

[media] usbvision: add missing USB-descriptor endianness conversions

Add the missing endianness conversions to a debug call printing the
USB device-descriptor idVendor and idProduct fields during probe.
Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 043f77ed
...@@ -1427,8 +1427,8 @@ static int usbvision_probe(struct usb_interface *intf, ...@@ -1427,8 +1427,8 @@ static int usbvision_probe(struct usb_interface *intf,
int model, i, ret; int model, i, ret;
PDEBUG(DBG_PROBE, "VID=%#04x, PID=%#04x, ifnum=%u", PDEBUG(DBG_PROBE, "VID=%#04x, PID=%#04x, ifnum=%u",
dev->descriptor.idVendor, le16_to_cpu(dev->descriptor.idVendor),
dev->descriptor.idProduct, ifnum); le16_to_cpu(dev->descriptor.idProduct), ifnum);
model = devid->driver_info; model = devid->driver_info;
if (model < 0 || model >= usbvision_device_data_size) { if (model < 0 || model >= usbvision_device_data_size) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment