lkml.org 
[lkml]   [2012]   [Jul]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH v2 1/1] Input: xpad - Handle all variations of Mad Catz Beat Pad
    On Sun, 8 Jul 2012, Yuri Khan wrote:

    > * Add a quirk to usbhid to ignore this device
    > ---
    > drivers/hid/hid-ids.h | 3 +++
    > drivers/hid/usbhid/hid-quirks.c | 2 ++
    > drivers/input/joystick/xpad.c | 1 +
    > 3 files changed, 6 insertions(+)
    >
    > diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h
    > index d1cdd2d..43c3d75 100644
    > --- a/drivers/hid/hid-ids.h
    > +++ b/drivers/hid/hid-ids.h
    > @@ -518,6 +518,9 @@
    > #define USB_DEVICE_ID_CRYSTALTOUCH 0x0006
    > #define USB_DEVICE_ID_CRYSTALTOUCH_DUAL 0x0007
    >
    > +#define USB_VENDOR_ID_MADCATZ 0x0738
    > +#define USB_DEVICE_ID_MADCATZ_BEATPAD 0x4540
    > +
    > #define USB_VENDOR_ID_MCC 0x09db
    > #define USB_DEVICE_ID_MCC_PMD1024LS 0x0076
    > #define USB_DEVICE_ID_MCC_PMD1208LS 0x007a
    > diff --git a/drivers/hid/usbhid/hid-quirks.c b/drivers/hid/usbhid/hid-quirks.c
    > index 0597ee6..8726d33 100644
    > --- a/drivers/hid/usbhid/hid-quirks.c
    > +++ b/drivers/hid/usbhid/hid-quirks.c
    > @@ -45,6 +45,8 @@ static const struct hid_blacklist {
    > { USB_VENDOR_ID_SAITEK, USB_DEVICE_ID_SAITEK_RUMBLEPAD, HID_QUIRK_BADPAD },
    > { USB_VENDOR_ID_TOPMAX, USB_DEVICE_ID_TOPMAX_COBRAPAD, HID_QUIRK_BADPAD },
    >
    > + { USB_VENDOR_ID_MADCATZ, USB_DEVICE_ID_MADCATZ_BEATPAD, HID_QUIRK_IGNORE },
    > +

    Please put it in drivers/hid/hid-core.c, hid_ignore_list[] array instead.
    HID_QUIRK_IGNORE is there solely for allowing specification as a module
    parameter.

    Thanks,

    --
    Jiri Kosina
    SUSE Labs


    \
     
     \ /
      Last update: 2012-07-09 17:01    [W:0.023 / U:0.400 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site