diff options
author | Keng-Yu Lin <kengyu@canonical.com> | 2012-07-06 06:06:11 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2012-07-09 10:23:33 -0400 |
commit | 929578ab0339fe42bb3ceeaa2e6607189cddf70b (patch) | |
tree | 07d63529b3feddfeb5788b6f8c1d1de93e435c1d /drivers/hid | |
parent | 25976a796cca22d6b0b2e9f821fa00fc4d98daa0 (diff) |
HID: Add suport for the brightness control keys on HP keyboards
The keys are found on the keyboards bundled with HP All-In-One machines
with USB VID/PID of 04ca:004d and 04f2:1061.
Signed-off-by: Keng-Yu Lin <kengyu@canonical.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid')
-rw-r--r-- | drivers/hid/hid-input.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c index 132b0019365e..879443bf410f 100644 --- a/drivers/hid/hid-input.c +++ b/drivers/hid/hid-input.c | |||
@@ -834,6 +834,15 @@ static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fiel | |||
834 | } | 834 | } |
835 | break; | 835 | break; |
836 | 836 | ||
837 | case HID_UP_HPVENDOR2: | ||
838 | set_bit(EV_REP, input->evbit); | ||
839 | switch (usage->hid & HID_USAGE) { | ||
840 | case 0x003: map_key_clear(KEY_BRIGHTNESSDOWN); break; | ||
841 | case 0x004: map_key_clear(KEY_BRIGHTNESSUP); break; | ||
842 | default: goto ignore; | ||
843 | } | ||
844 | break; | ||
845 | |||
837 | case HID_UP_MSVENDOR: | 846 | case HID_UP_MSVENDOR: |
838 | goto ignore; | 847 | goto ignore; |
839 | 848 | ||