summaryrefslogtreecommitdiff
path: root/drivers/hid/hid-input.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2014-10-21 23:11:00 +0200
committerJiri Kosina <jkosina@suse.cz>2014-10-22 11:59:58 +0200
commitafdb5cce979b7d3100d58bdce70c8be6093a8915 (patch)
tree66e412aab6be50a550a03a969e1fd158d63c29dc /drivers/hid/hid-input.c
parent39520eea198a7fbba35f4c7cffb4323f78455716 (diff)
HID: input: Map unknown consumer page codes to KEY_UNKNOWN
Currently unknown consumer page codes are ignored, which means that they cannot later be mapped from userspace using udev / hwdb. Map them to KEY_UNKNOWN, so that userspace can remap them for keyboards which make up their own consumer page codes. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-input.c')
-rw-r--r--drivers/hid/hid-input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c
index 2df7fddbd119..7ea582be9c9a 100644
--- a/drivers/hid/hid-input.c
+++ b/drivers/hid/hid-input.c
@@ -862,7 +862,7 @@ static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fiel
case 0x28b: map_key_clear(KEY_FORWARDMAIL); break;
case 0x28c: map_key_clear(KEY_SEND); break;
- default: goto ignore;
+ default: map_key_clear(KEY_UNKNOWN);
}
break;