From: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
To: Hans de Goede <hdegoede@redhat.com>
Cc: Andy Shevchenko <andy@kernel.org>,
James Harmison <jharmison@redhat.com>,
platform-driver-x86@vger.kernel.org
Subject: Re: [PATCH 3/3] platform/x86: panasonic-laptop: Add support for programmable buttons
Date: Tue, 3 Sep 2024 13:35:50 +0300 (EEST) [thread overview]
Message-ID: <38ea9608-782f-ca51-84ec-b66abff38c1e@linux.intel.com> (raw)
In-Reply-To: <20240903083533.9403-3-hdegoede@redhat.com>
On Tue, 3 Sep 2024, Hans de Goede wrote:
> From: James Harmison <jharmison@redhat.com>
>
> Newer panasonic toughbook models have a number of programmable buttons,
> add support for these.
>
> Tested-by: James Harmison <jharmison@redhat.com>
> Signed-off-by: James Harmison <jharmison@redhat.com>
> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
> ---
> drivers/platform/x86/panasonic-laptop.c | 13 ++++++++++++-
> 1 file changed, 12 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/platform/x86/panasonic-laptop.c b/drivers/platform/x86/panasonic-laptop.c
> index 4c9e20e1afe8..2070caa1ea1b 100644
> --- a/drivers/platform/x86/panasonic-laptop.c
> +++ b/drivers/platform/x86/panasonic-laptop.c
> @@ -224,6 +224,17 @@ static const struct key_entry panasonic_keymap[] = {
> { KE_KEY, 8, { KEY_PROG1 } }, /* Change CPU boost */
> { KE_KEY, 9, { KEY_BATTERY } },
> { KE_KEY, 10, { KEY_SUSPEND } },
> + { KE_KEY, 21, { KEY_MACRO1 } },
> + { KE_KEY, 22, { KEY_MACRO2 } },
> + { KE_KEY, 24, { KEY_MACRO3 } },
> + { KE_KEY, 25, { KEY_MACRO4 } },
> + { KE_KEY, 34, { KEY_MACRO5 } },
> + { KE_KEY, 35, { KEY_MACRO6 } },
> + { KE_KEY, 36, { KEY_MACRO7 } },
> + { KE_KEY, 37, { KEY_MACRO8 } },
> + { KE_KEY, 41, { KEY_MACRO9 } },
> + { KE_KEY, 42, { KEY_MACRO10 } },
> + { KE_KEY, 43, { KEY_MACRO11 } },
> { KE_END, 0 }
> };
>
> @@ -811,7 +822,7 @@ static void acpi_pcc_generate_keyinput(struct pcc_acpi *pcc)
> return;
> }
>
> - key = result & 0xf;
> + key = result & 0x7f;
I'd mention this in the commit message. It's kind of different from adding
just keys.
--
i.
next prev parent reply other threads:[~2024-09-03 10:35 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-03 8:35 [PATCH 1/3] platform/x86: panasonic-laptop: Check minimum SQTY value Hans de Goede
2024-09-03 8:35 ` [PATCH 2/3] platform/x86: panasonic-laptop: Allocate 1 entry extra in the sinf array Hans de Goede
2024-09-03 10:33 ` Ilpo Järvinen
2024-09-03 11:07 ` Andy Shevchenko
2024-09-03 8:35 ` [PATCH 3/3] platform/x86: panasonic-laptop: Add support for programmable buttons Hans de Goede
2024-09-03 10:35 ` Ilpo Järvinen [this message]
2024-09-03 11:09 ` Andy Shevchenko
2024-09-03 10:29 ` [PATCH 1/3] platform/x86: panasonic-laptop: Check minimum SQTY value Ilpo Järvinen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=38ea9608-782f-ca51-84ec-b66abff38c1e@linux.intel.com \
--to=ilpo.jarvinen@linux.intel.com \
--cc=andy@kernel.org \
--cc=hdegoede@redhat.com \
--cc=jharmison@redhat.com \
--cc=platform-driver-x86@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox