intel-hid: fix incorrect entries in intel_hid_keymap
PATCH 1/1 intel-hid: fix incorrect entries in intel_hid_keymap
intel_hid_keymap contains a duplicate entry for KEY_HOME and an incorrect HID index for KEY_PAGEDOWN
Reported-by Pavel Bludov <[email protected]>
Signed-off-by Alex Hung <[email protected]>
--- drivers/platform/x86/intel-hid.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/platform/x86/intel-hid.c +1 -2
@@ -41,8 +41,7 @@ static const struct key_entry intel_hid_keymap[] = { { KE_KEY, 4, { KEY_HOME } }, { KE_KEY, 5, { KEY_END } }, { KE_KEY, 6, { KEY_PAGEUP } }, - { KE_KEY, 4, { KEY_PAGEDOWN } }, - { KE_KEY, 4, { KEY_HOME } }, + { KE_KEY, 7, { KEY_PAGEDOWN } }, { KE_KEY, 8, { KEY_RFKILL } }, { KE_KEY, 9, { KEY_POWER } }, { KE_KEY, 11, { KEY_SLEEP } },
Signature · 1 line
2.5.0
Quoted 5 lines · Alex Hung
intel_hid_keymapcontains a duplicate entry forKEY_HOMEand an incorrect HID index forKEY_PAGEDOWNReported-by Pavel Bludov <[email protected]>Signed-off-by Alex Hung <[email protected]>
Thanks Alex, queued for 4.5 fixes.
Quoted 22 lines
--- drivers/platform/x86/intel-hid.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/platform/x86/intel-hid.c +1
-2@@ -41,8 +41,7 @@ static const struct key_entry intel_hid_keymap[] = { { KE_KEY, 4, { KEY_HOME } }, { KE_KEY, 5, { KEY_END } }, { KE_KEY, 6, { KEY_PAGEUP } }, - { KE_KEY, 4, { KEY_PAGEDOWN } }, - { KE_KEY, 4, { KEY_HOME } }, + { KE_KEY, 7, { KEY_PAGEDOWN } }, { KE_KEY, 8, { KEY_RFKILL } }, { KE_KEY, 9, { KEY_POWER } }, { KE_KEY, 11, { KEY_SLEEP } },Signature · 1 line
2.5.0
Signature · 2 lines
Darren Hart Intel Open Source Technology Center