]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
Input: usbtouchscreen - fix eGalax HID ignoring
authorDaniel Ritz <daniel.ritz-ml@swissonline.ch>
Sat, 28 Feb 2009 20:50:54 +0000 (12:50 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 28 Feb 2009 22:01:25 +0000 (14:01 -0800)
Commit ec42d4481e36cbdb5b2801f957e678211a9e5ae2 broke usbtouchscreen for
some eGalax/EETI devices that claim to be HID, but are not.

Devices confirmed to be real HID have the class set to HID and the protocol
set to 'mouse'.  Some have HID class but protocol set to 'none'. Those are
not HID and should be driven by usbtouchscreen.

Fix the device ignoring macro by adding match for the protocol too.

Signed-off-by: Daniel Ritz <daniel.ritz@gmx.ch>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/touchscreen/usbtouchscreen.c

index 6d27a1d661e6c8a0b5bd827b63317d83182e3ebe..fb7cb9bdfbd5c4971cedeb064b8839ae3d09365a 100644 (file)
@@ -122,6 +122,7 @@ enum {
 
 #define USB_DEVICE_HID_CLASS(vend, prod) \
        .match_flags = USB_DEVICE_ID_MATCH_INT_CLASS \
+               | USB_DEVICE_ID_MATCH_INT_PROTOCOL \
                | USB_DEVICE_ID_MATCH_DEVICE, \
        .idVendor = (vend), \
        .idProduct = (prod), \