mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
video: fbdev: add missing USB-descriptor endianness conversions
Add the missing endianness conversions when printing the USB device-descriptor idVendor, idProduct and bcdDevice fields during probe. Signed-off-by: Johan Hovold <[email protected]> Cc: Steve Glendinning <[email protected]> Cc: Bernie Thompson <[email protected]> Signed-off-by: Bartlomiej Zolnierkiewicz <[email protected]>
This commit is contained in:
parent
c544ad18bd
commit
1235185521
2 changed files with 6 additions and 4 deletions
|
|
@ -1646,8 +1646,9 @@ static int ufx_usb_probe(struct usb_interface *interface,
|
|||
dev_dbg(dev->gdev, "%s %s - serial #%s\n",
|
||||
usbdev->manufacturer, usbdev->product, usbdev->serial);
|
||||
dev_dbg(dev->gdev, "vid_%04x&pid_%04x&rev_%04x driver's ufx_data struct at %p\n",
|
||||
usbdev->descriptor.idVendor, usbdev->descriptor.idProduct,
|
||||
usbdev->descriptor.bcdDevice, dev);
|
||||
le16_to_cpu(usbdev->descriptor.idVendor),
|
||||
le16_to_cpu(usbdev->descriptor.idProduct),
|
||||
le16_to_cpu(usbdev->descriptor.bcdDevice), dev);
|
||||
dev_dbg(dev->gdev, "console enable=%d\n", console);
|
||||
dev_dbg(dev->gdev, "fb_defio enable=%d\n", fb_defio);
|
||||
|
||||
|
|
|
|||
|
|
@ -1613,8 +1613,9 @@ static int dlfb_usb_probe(struct usb_interface *interface,
|
|||
pr_info("%s %s - serial #%s\n",
|
||||
usbdev->manufacturer, usbdev->product, usbdev->serial);
|
||||
pr_info("vid_%04x&pid_%04x&rev_%04x driver's dlfb_data struct at %p\n",
|
||||
usbdev->descriptor.idVendor, usbdev->descriptor.idProduct,
|
||||
usbdev->descriptor.bcdDevice, dev);
|
||||
le16_to_cpu(usbdev->descriptor.idVendor),
|
||||
le16_to_cpu(usbdev->descriptor.idProduct),
|
||||
le16_to_cpu(usbdev->descriptor.bcdDevice), dev);
|
||||
pr_info("console enable=%d\n", console);
|
||||
pr_info("fb_defio enable=%d\n", fb_defio);
|
||||
pr_info("shadow enable=%d\n", shadow);
|
||||
|
|
|
|||
Loading…
Reference in a new issue