]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/usb/input/hid-core.c
USB HID: Fix USB vendor and product IDs endianness for USB HID devices
[karo-tx-linux.git] / drivers / usb / input / hid-core.c
index c6c9e72e5fd9d94a3fada3216e41090b907815d0..dd9e546a97024d5cdb3fc5437b498faf8213e04f 100644 (file)
@@ -1212,8 +1212,8 @@ static struct hid_device *usb_hid_configure(struct usb_interface *intf)
                         le16_to_cpu(dev->descriptor.idProduct));
 
        hid->bus = BUS_USB;
-       hid->vendor = dev->descriptor.idVendor;
-       hid->product = dev->descriptor.idProduct;
+       hid->vendor = le16_to_cpu(dev->descriptor.idVendor);
+       hid->product = le16_to_cpu(dev->descriptor.idProduct);
 
        usb_make_path(dev, hid->phys, sizeof(hid->phys));
        strlcat(hid->phys, "/input", sizeof(hid->phys));