From mboxrd@z Thu Jan 1 00:00:00 1970 From: Henrique de Moraes Holschuh Subject: Re: [PATCH v2 1/2] platform/x86: thinkpad_acpi: guard generic hotkey case Date: Tue, 28 Feb 2017 17:02:08 -0300 Message-ID: <20170228200208.GA10069@khazad-dum.debian.net> References: <20170228161057.28394-1-ckellner@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20170228161057.28394-1-ckellner-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ibm-acpi-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org To: Christian Kellner Cc: Darren Hart , Christian Kellner , platform-driver-x86-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Andy Shevchenko , ibm-acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: platform-driver-x86.vger.kernel.org On Tue, 28 Feb 2017, Christian Kellner wrote: > From: Christian Kellner > > Currently when dispatching hotkeys we check if the scancode is in > the range of 0 and TPACPI_HOTKEY_MAP_LEN, although the bottom 20 > entries in the hotkey keymap are already adaptive keycodes. > Therefore we introduce a TP_ACPI_HOTKEYSCAN_ADAPTIVE_START and > ensure that we are in the range 0 and ADAPTIVE_START for the generic > keycode case. > > Signed-off-by: Christian Kellner > Reviewed-by: Hans de Goede Acked-by: Henrique de Moraes Holschuh -- Henrique Holschuh ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot