* [PATCH v2] platform/x86: thinkpad_acpi: Add support for calculator hotkey
@ 2018-06-20 13:49 Benjamin Berg
[not found] ` <20180620134927.6468-1-bberg-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Benjamin Berg @ 2018-06-20 13:49 UTC (permalink / raw)
To: Henrique de Moraes Holschuh, Darren Hart, Andy Shevchenko
Cc: ibm-acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
Christian Kellner, Benjamin Berg,
platform-driver-x86-u79uwXL29TY76Z2rM5mHXA
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 <bberg-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Acked-by: Henrique de Moraes Holschuh <hmh-N3TV7GIv+o9fyO9Q7EP/yw@public.gmane.org>
---
v2:
* Change comment to indicate that key is found on the P52
---
drivers/platform/x86/thinkpad_acpi.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c
index cae9b0595692..9e8061f44563 100644
--- 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 */
},
--
2.17.1
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2] platform/x86: thinkpad_acpi: Add support for calculator hotkey
[not found] ` <20180620134927.6468-1-bberg-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2018-06-22 23:48 ` Darren Hart
0 siblings, 0 replies; 2+ messages in thread
From: Darren Hart @ 2018-06-22 23:48 UTC (permalink / raw)
To: Benjamin Berg
Cc: ibm-acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
Christian Kellner, Henrique de Moraes Holschuh, Andy Shevchenko,
platform-driver-x86-u79uwXL29TY76Z2rM5mHXA
On Wed, Jun 20, 2018 at 03:49:27PM +0200, Benjamin Berg wrote:
> 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 <bberg-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
> Acked-by: Henrique de Moraes Holschuh <hmh-N3TV7GIv+o9fyO9Q7EP/yw@public.gmane.org>
Thanks Ben and Henrique, queued up.
--
Darren Hart
VMware Open Source Technology Center
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-06-22 23:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-20 13:49 [PATCH v2] platform/x86: thinkpad_acpi: Add support for calculator hotkey Benjamin Berg
[not found] ` <20180620134927.6468-1-bberg-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2018-06-22 23:48 ` Darren Hart
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox