From: Hans de Goede Date: Tue, 21 Oct 2014 21:11:00 +0000 (+0200) Subject: HID: input: Map unknown consumer page codes to KEY_UNKNOWN X-Git-Tag: v4.9.8~5189^2~1^3~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=afdb5cce979b7d3100d58bdce70c8be6093a8915;p=platform%2Fkernel%2Flinux-rpi3.git 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 Signed-off-by: Jiri Kosina --- diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c index 2df7fdd..7ea582b 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;