From: Luis R. Rodriguez Date: Wed, 12 Dec 2012 15:49:18 +0000 (-0800) Subject: compat: add HID_QUIRK_HIDDEV_FORCE and HID_QUIRK_NO_IGNORE X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e90763ed198be5ed5bc4aad504ba719a9e01004a;p=openwrt%2Fstaging%2Fblogic.git compat: add HID_QUIRK_HIDDEV_FORCE and HID_QUIRK_NO_IGNORE We just need the definitions. mcgrof@frijol ~/linux-next (git::master)$ git describe --contains b5e5a37e v2.6.35-rc1~454^2~5^2~14 commit b5e5a37e36cd4d355b875665312d7aaae4e5833c Author: Bastien Nocera Date: Fri Apr 16 17:19:50 2010 +0100 HID: add HID_QUIRK_HIDDEV_FORCE and HID_QUIRK_NO_IGNORE Add two quirks to make it possible for usbhid module options to override whether a device is ignored (HID_QUIRK_NO_IGNORE) and whether to connect a hiddev device (HID_QUIRK_HIDDEV_FORCE). Passing HID_QUIRK_NO_IGNORE for your device means that it will not be ignored by the HID layer, even if present in a blacklist. HID_QUIRK_HIDDEV_FORCE will force the creation of a hiddev for that device, making it accessible from user-space. Tested with an Apple IR Receiver, switching it from using appleir to using lirc's macmini driver. Signed-off-by: Bastien Nocera Signed-off-by: Jiri Kosina Signed-off-by: Luis R. Rodriguez --- diff --git a/include/linux/compat-2.6.35.h b/include/linux/compat-2.6.35.h index 22981a94fcfa..b06638ac727c 100644 --- a/include/linux/compat-2.6.35.h +++ b/include/linux/compat-2.6.35.h @@ -11,6 +11,9 @@ #include #include +#define HID_QUIRK_NO_IGNORE 0x40000000 +#define HID_QUIRK_HIDDEV_FORCE 0x00000010 + /* added on linux/kernel.h */ #define USHRT_MAX ((u16)(~0U)) #define SHRT_MAX ((s16)(USHRT_MAX>>1))