projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
147288e
)
platform/x86: thinkpad_acpi: Add support for calculator hotkey
author
Benjamin Berg
<
[email protected]
>
Wed, 20 Jun 2018 13:49:27 +0000
(15:49 +0200)
committer
Darren Hart (VMware)
<
[email protected]
>
Tue, 26 Jun 2018 22:01:52 +0000
(15:01 -0700)
The P52 has a keyboard which features a calculator key above the numpad.
Add support for this the calculator key (0x1313).
Signed-off-by: Benjamin Berg <
[email protected]
>
Acked-by: Henrique de Moraes Holschuh <
[email protected]
>
Signed-off-by: Darren Hart (VMware) <
[email protected]
>
drivers/platform/x86/thinkpad_acpi.c
patch
|
blob
|
history
diff --git
a/drivers/platform/x86/thinkpad_acpi.c
b/drivers/platform/x86/thinkpad_acpi.c
index cae9b059569229d7c937e2f7101040969d9c7d5f..9e8061f445639ad97c4bf0964abb7f312d4bb960 100644
(file)
--- a/
drivers/platform/x86/thinkpad_acpi.c
+++ b/
drivers/platform/x86/thinkpad_acpi.c
@@
-1928,7
+1928,7
@@
enum { /* hot key scan codes (derived from ACPI DSDT) */
/* first new observed key (star, favorites) is 0x1311 */
TP_ACPI_HOTKEYSCAN_STAR = 69,
TP_ACPI_HOTKEYSCAN_CLIPPING_TOOL2,
- TP_ACPI_HOTKEYSCAN_
UNK25
,
+ TP_ACPI_HOTKEYSCAN_
CALCULATOR
,
TP_ACPI_HOTKEYSCAN_BLUETOOTH,
TP_ACPI_HOTKEYSCAN_KEYBOARD,
@@
-3449,7
+3449,7
@@
static int __init hotkey_init(struct ibm_init_struct *iibm)
KEY_FAVORITES, /* Favorite app, 0x311 */
KEY_RESERVED, /* Clipping tool */
- KEY_
RESERVED,
+ KEY_
CALC, /* Calculator (above numpad, P52) */
KEY_BLUETOOTH, /* Bluetooth */
KEY_KEYBOARD /* Keyboard, 0x315 */
},