summaryrefslogtreecommitdiff
path: root/drivers/media/usb/usbvision
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2017-05-12 13:01:30 +0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-06-06 13:43:02 +0300
commitab64a58976cd2ec9c479f40bec31c7ce93e1ccc9 (patch)
tree95f5cf6fa79357f6c15b3f7ef2a5252713a36152 /drivers/media/usb/usbvision
parent043f77edae8bd50f238b7afc6bdf49c4db0ed4ac (diff)
downloadlinux-ab64a58976cd2ec9c479f40bec31c7ce93e1ccc9.tar.xz
[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: Johan Hovold <johan@kernel.org> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/usb/usbvision')
-rw-r--r--drivers/media/usb/usbvision/usbvision-video.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/usb/usbvision/usbvision-video.c b/drivers/media/usb/usbvision/usbvision-video.c
index f9c3325aa4d4..756322c4ac05 100644
--- a/drivers/media/usb/usbvision/usbvision-video.c
+++ b/drivers/media/usb/usbvision/usbvision-video.c
@@ -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) {