From: Nikolai Kondrashov Date: Fri, 6 Aug 2010 19:03:07 +0000 (+0400) Subject: HID: Add Tablet Pick -> BTN_STYLUS2 mapping X-Git-Tag: v2.6.37-rc1~144^2~2^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50b6369767f65c39de3d7ca17842ebc6c52888b8;p=pandora-kernel.git HID: Add Tablet Pick -> BTN_STYLUS2 mapping Many tablet input drivers use BTN_STYLUS2 code to report a second tablet stylus button. Yet, the generic HID input driver doesn't map it. Apparently, because there is no corresponding usage in the HID Usage Tables. This patch selects a compromise usage - "Tablet Pick" (0x46) to be mapped to BTN_STYLUS2. Some tablets use "Eraser" usage, but mapping it to a button wouldn't be entirely correct, because the specification says it may be "a pressure quantity". Signed-off-by: Nikolai Kondrashov Signed-off-by: Jiri Kosina --- Reading git-diff-tree failed