diff options
author | Tomoya Adachi <adachi@il.is.s.u-tokyo.ac.jp> | 2007-10-03 23:27:49 +0200 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2007-10-14 13:40:01 +0200 |
commit | 08f06177f4089abeba904cc12a2a50cffa9ffce6 (patch) | |
tree | 8c64f7016c107c7941773bd15d58406741e7376f /include/linux/hid.h | |
parent | 0ce1ac3b3ca0f44682aed210ba6062bafc2e32fa (diff) | |
download | op-kernel-dev-08f06177f4089abeba904cc12a2a50cffa9ffce6.zip op-kernel-dev-08f06177f4089abeba904cc12a2a50cffa9ffce6.tar.gz |
USBHID: report descriptor fix for MacBook JIS keyboard
This patch fixes the problem, that Japanese MacBook doesn't recognize some keys
like '\'(yen, or backslash), '|'(pipe), and '_'(underscore).
It is due to that MacBook JIS keyboard (jp106) sends wrong report descriptor.
It saids "logical maximum = 0x65", so Keyboard.0089 is mapped to Key.Unknown,
while it should be accepted as Key.Yen.
Signed-off-by: Tomoya Adachi <adachi@il.is.s.u-tokyo.ac.jp>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'include/linux/hid.h')
-rw-r--r-- | include/linux/hid.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/hid.h b/include/linux/hid.h index eb42e10..35f5384 100644 --- a/include/linux/hid.h +++ b/include/linux/hid.h @@ -286,6 +286,7 @@ struct hid_item { #define HID_QUIRK_RDESC_LOGITECH 0x00000002 #define HID_QUIRK_RDESC_SWAPPED_MIN_MAX 0x00000004 #define HID_QUIRK_RDESC_PETALYNX 0x00000008 +#define HID_QUIRK_RDESC_MACBOOK_JIS 0x00000010 /* * This is the global environment of the parser. This information is |