Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S978498AbdDXVmD (ORCPT ); Mon, 24 Apr 2017 17:42:03 -0400 Received: from mail-ua0-f193.google.com ([209.85.217.193]:33593 "EHLO mail-ua0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S977926AbdDXVly (ORCPT ); Mon, 24 Apr 2017 17:41:54 -0400 MIME-Version: 1.0 In-Reply-To: References: <20170424212908.10055-1-madman2003@shikahr.net> From: Maarten Maathuis Date: Mon, 24 Apr 2017 23:41:53 +0200 Message-ID: Subject: Re: [PATCH] platform/x86/intel-vbtn: add volume up and down To: Andy Shevchenko Cc: AceLan Kao , "dvhart@infradead.org" , Platform Driver , "linux-kernel@vger.kernel.org" , Maarten Maathuis Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1988 Lines: 59 On Mon, Apr 24, 2017 at 11:37 PM, Andy Shevchenko wrote: > On Tue, Apr 25, 2017 at 12:29 AM, Maarten Maathuis 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). >> > > Much better! > >> V2: Fix indent and add sign-off > > Usually this line goes after --- (body delimiter). > No need to resend this time. I would wait a bit for actual > author/driver maintainer to comment. Otherwise patch looks good enough > to me. The intent is not have this in the commit message? I'll keep an eye out if i can place it below "---" next time. Although i suspect the message would end in the actual code diff, which seems odd. > >> >> Signed-off-by: Maarten Maathuis >> --- >> 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..1616cb9c4ae5 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 -- Far away from the primal instinct, the song seems to fade away, the river get wider between your thoughts and the things we do and say.