linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git] / drivers / usb / input / hid-ff.c
index b43463b..72e6986 100644 (file)
@@ -55,6 +55,7 @@ static struct hid_ff_initializer inits[] = {
        {0x46d, 0xc211, hid_lgff_init}, // Logitech Cordless rumble pad
        {0x46d, 0xc283, hid_lgff_init}, // Logitech Wingman Force 3d
        {0x46d, 0xc295, hid_lgff_init}, // Logitech MOMO force wheel
+       {0x46d, 0xc219, hid_lgff_init}, // Logitech Cordless rumble pad 2
 #endif
 #ifdef CONFIG_HID_PID
        {0x45e, 0x001b, hid_pid_init},
@@ -82,8 +83,8 @@ int hid_ff_init(struct hid_device* hid)
 {
        struct hid_ff_initializer *init;
 
-       init = hid_get_ff_init(hid->dev->descriptor.idVendor,
-                              hid->dev->descriptor.idProduct);
+       init = hid_get_ff_init(le16_to_cpu(hid->dev->descriptor.idVendor),
+                              le16_to_cpu(hid->dev->descriptor.idProduct));
 
        if (!init) {
                dbg("hid_ff_init could not find initializer");