mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-04 11:46:46 +07:00
[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>
This commit is contained in:
parent
043f77edae
commit
ab64a58976
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user