- patches.fixes/patch-2.6.11-rc1: 2.6.11-rc1.
[linux-flexiantxendom0-3.2.10.git] / drivers / usb / input / touchkitusb.c
index 65dd5be..734e111 100644 (file)
@@ -211,9 +211,9 @@ static int touchkit_probe(struct usb_interface *intf,
        touchkit->input.name = touchkit->name;
        touchkit->input.phys = touchkit->phys;
        touchkit->input.id.bustype = BUS_USB;
-       touchkit->input.id.vendor = udev->descriptor.idVendor;
-       touchkit->input.id.product = udev->descriptor.idProduct;
-       touchkit->input.id.version = udev->descriptor.bcdDevice;
+       touchkit->input.id.vendor = le16_to_cpu(udev->descriptor.idVendor);
+       touchkit->input.id.product = le16_to_cpu(udev->descriptor.idProduct);
+       touchkit->input.id.version = le16_to_cpu(udev->descriptor.bcdDevice);
        touchkit->input.dev = &intf->dev;
 
        touchkit->input.evbit[0] = BIT(EV_KEY) | BIT(EV_ABS);