projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef4b160
)
mmc: vub3000: add missing USB-descriptor endianness conversions
author
Johan Hovold
<johan@kernel.org>
Fri, 12 May 2017 10:03:35 +0000
(12:03 +0200)
committer
Ulf Hansson
<ulf.hansson@linaro.org>
Tue, 20 Jun 2017 08:30:09 +0000
(10:30 +0200)
Add the missing endianness conversions when printing the USB
device-descriptor idVendor and idProduct fields during probe.
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/vub300.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mmc/host/vub300.c
b/drivers/mmc/host/vub300.c
index c061e7c704be72b32aa9407b07e56401bbab2fcf..fbeea1a491a6098394256d1833d0b5f8bcf77cc9 100644
(file)
--- a/
drivers/mmc/host/vub300.c
+++ b/
drivers/mmc/host/vub300.c
@@
-2107,7
+2107,8
@@
static int vub300_probe(struct usb_interface *interface,
usb_string(udev, udev->descriptor.iSerialNumber, serial_number,
sizeof(serial_number));
dev_info(&udev->dev, "probing VID:PID(%04X:%04X) %s %s %s\n",
- udev->descriptor.idVendor, udev->descriptor.idProduct,
+ le16_to_cpu(udev->descriptor.idVendor),
+ le16_to_cpu(udev->descriptor.idProduct),
manufacturer, product, serial_number);
command_out_urb = usb_alloc_urb(0, GFP_KERNEL);
if (!command_out_urb) {