All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] platform/x86: asus-nb-wmi: Support left round button on N56VB
@ 2020-01-13 22:39 Paul Cercueil
  2020-01-23 12:32 ` Andy Shevchenko
  0 siblings, 1 reply; 2+ messages in thread
From: Paul Cercueil @ 2020-01-13 22:39 UTC (permalink / raw)
  To: Corentin Chary
  Cc: Darren Hart, Andy Shevchenko, acpi4asus-user,
	platform-driver-x86, linux-kernel, Paul Cercueil

The N56VB laptop has a round button located on the left side above the
keyboard. Map it to F13 since it does not have any predeterminated
purpose.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
---
 drivers/platform/x86/asus-nb-wmi.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/platform/x86/asus-nb-wmi.c b/drivers/platform/x86/asus-nb-wmi.c
index b361c73636a4..6f12747a359a 100644
--- a/drivers/platform/x86/asus-nb-wmi.c
+++ b/drivers/platform/x86/asus-nb-wmi.c
@@ -471,6 +471,7 @@ static const struct key_entry asus_nb_wmi_keymap[] = {
 	{ KE_KEY, 0x67, { KEY_SWITCHVIDEOMODE } }, /* SDSP LCD + CRT + TV */
 	{ KE_KEY, 0x6B, { KEY_TOUCHPAD_TOGGLE } },
 	{ KE_IGNORE, 0x6E, },  /* Low Battery notification */
+	{ KE_KEY, 0x71, { KEY_F13 } }, /* General-purpose button */
 	{ KE_KEY, 0x7a, { KEY_ALS_TOGGLE } }, /* Ambient Light Sensor Toggle */
 	{ KE_KEY, 0x7c, { KEY_MICMUTE } },
 	{ KE_KEY, 0x7D, { KEY_BLUETOOTH } }, /* Bluetooth Enable */
-- 
2.24.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] platform/x86: asus-nb-wmi: Support left round button on N56VB
  2020-01-13 22:39 [PATCH] platform/x86: asus-nb-wmi: Support left round button on N56VB Paul Cercueil
@ 2020-01-23 12:32 ` Andy Shevchenko
  0 siblings, 0 replies; 2+ messages in thread
From: Andy Shevchenko @ 2020-01-23 12:32 UTC (permalink / raw)
  To: Paul Cercueil
  Cc: Corentin Chary, Darren Hart, Andy Shevchenko, acpi4asus-user,
	Platform Driver, Linux Kernel Mailing List

On Tue, Jan 14, 2020 at 12:39 AM Paul Cercueil <paul@crapouillou.net> wrote:
>
> The N56VB laptop has a round button located on the left side above the
> keyboard. Map it to F13 since it does not have any predeterminated
> purpose.
>

Pushed to my review and testing queue, thanks!

> Signed-off-by: Paul Cercueil <paul@crapouillou.net>
> ---
>  drivers/platform/x86/asus-nb-wmi.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/platform/x86/asus-nb-wmi.c b/drivers/platform/x86/asus-nb-wmi.c
> index b361c73636a4..6f12747a359a 100644
> --- a/drivers/platform/x86/asus-nb-wmi.c
> +++ b/drivers/platform/x86/asus-nb-wmi.c
> @@ -471,6 +471,7 @@ static const struct key_entry asus_nb_wmi_keymap[] = {
>         { KE_KEY, 0x67, { KEY_SWITCHVIDEOMODE } }, /* SDSP LCD + CRT + TV */
>         { KE_KEY, 0x6B, { KEY_TOUCHPAD_TOGGLE } },
>         { KE_IGNORE, 0x6E, },  /* Low Battery notification */
> +       { KE_KEY, 0x71, { KEY_F13 } }, /* General-purpose button */
>         { KE_KEY, 0x7a, { KEY_ALS_TOGGLE } }, /* Ambient Light Sensor Toggle */
>         { KE_KEY, 0x7c, { KEY_MICMUTE } },
>         { KE_KEY, 0x7D, { KEY_BLUETOOTH } }, /* Bluetooth Enable */
> --
> 2.24.1
>


-- 
With Best Regards,
Andy Shevchenko

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-01-23 12:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-13 22:39 [PATCH] platform/x86: asus-nb-wmi: Support left round button on N56VB Paul Cercueil
2020-01-23 12:32 ` Andy Shevchenko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.