linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andy Shevchenko <andy.shevchenko@gmail.com>
To: Maarten Maathuis <madman2003@gmail.com>
Cc: AceLan Kao <acelan.kao@canonical.com>,
	"dvhart@infradead.org" <dvhart@infradead.org>,
	Platform Driver <platform-driver-x86@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	Maarten Maathuis <madman2003@shikahr.net>
Subject: Re: [PATCH] platform/x86/intel-vbtn: add volume up and down
Date: Tue, 25 Apr 2017 15:13:27 +0300	[thread overview]
Message-ID: <CAHp75VcJZrVNMKNx=bFoz2PMw3cB98bHsTcSYU1PVTnBveciMw@mail.gmail.com> (raw)
In-Reply-To: <20170424213521.10406-1-madman2003@shikahr.net>

On Tue, Apr 25, 2017 at 12:35 AM, Maarten Maathuis <madman2003@gmail.com> wrote:
> Tested on HP Elite X2 1012 G1.
> Matches event report of Lenovo Helix 2
> (https://www.spinics.net/lists/ibm-acpi-devel/msg03982.html).
>
> V2: Fix indent and add sign-off
> V3: Missing whitespace correction

Slightly modified (*) version pushed to testing, thanks!

*) Fixed subject, removed changelog from commit message, improved indentation

>
> Signed-off-by: Maarten Maathuis <madman2003@shikahr.net>
> ---
>  drivers/platform/x86/intel-vbtn.c | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/drivers/platform/x86/intel-vbtn.c b/drivers/platform/x86/intel-vbtn.c
> index 554e82ebe83c..dc270fe793a1 100644
> --- a/drivers/platform/x86/intel-vbtn.c
> +++ b/drivers/platform/x86/intel-vbtn.c
> @@ -37,6 +37,10 @@ static const struct acpi_device_id intel_vbtn_ids[] = {
>  static const struct key_entry intel_vbtn_keymap[] = {
>         { KE_IGNORE, 0xC0, { KEY_POWER } },     /* power key press */
>         { KE_KEY, 0xC1, { KEY_POWER } },        /* power key release */
> +       { KE_KEY, 0xC4, { KEY_VOLUMEUP } },     /* volume-up key press */
> +       { KE_IGNORE, 0xC5, { KEY_VOLUMEUP } },  /* volume-up key release */
> +       { KE_KEY, 0xC6, { KEY_VOLUMEDOWN } },   /* volume-down key press */
> +       { KE_IGNORE, 0xC7, { KEY_VOLUMEDOWN } },        /* volume-down key release */
>         { KE_END },
>  };
>
> --
> 2.12.2
>



-- 
With Best Regards,
Andy Shevchenko

  reply	other threads:[~2017-04-25 12:14 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-24 21:35 [PATCH] platform/x86/intel-vbtn: add volume up and down Maarten Maathuis
2017-04-25 12:13 ` Andy Shevchenko [this message]
  -- strict thread matches above, loose matches on Subject: below --
2017-04-24 21:29 Maarten Maathuis
2017-04-24 21:37 ` Andy Shevchenko
2017-04-24 21:41   ` Maarten Maathuis
2017-04-25  2:43     ` AceLan Kao
2017-04-25  5:01       ` Maarten Maathuis
2017-04-25  6:15         ` AceLan Kao
2017-04-24 20:47 Maarten Maathuis
2017-04-24 20:55 ` Andy Shevchenko
2017-04-24 21:32   ` Maarten Maathuis

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='CAHp75VcJZrVNMKNx=bFoz2PMw3cB98bHsTcSYU1PVTnBveciMw@mail.gmail.com' \
    --to=andy.shevchenko@gmail.com \
    --cc=acelan.kao@canonical.com \
    --cc=dvhart@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=madman2003@gmail.com \
    --cc=madman2003@shikahr.net \
    --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;
as well as URLs for NNTP newsgroup(s).