From: "Lee, Chun-Yi" Subject: [PATCH 1/1] acer-wmi: set the touchpad toggle key code to KEY_TOUCHPAD_TOGGLE Date: Wed, 2 Mar 2011 01:07:11 +0800 Message-ID: <1298999231-11304-1-git-send-email-jlee@novell.com> Return-path: Received: from mail-ew0-f46.google.com ([209.85.215.46]:41328 "EHLO mail-ew0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756877Ab1CARIy (ORCPT ); Tue, 1 Mar 2011 12:08:54 -0500 Received: by ewy6 with SMTP id 6so1733548ewy.19 for ; Tue, 01 Mar 2011 09:08:52 -0800 (PST) Sender: platform-driver-x86-owner@vger.kernel.org List-ID: To: carlos@strangeworlds.co.uk Cc: platform-driver-x86@vger.kernel.org, "Lee, Chun-Yi" , Matthew Garrett , Dmitry Torokhov , Corentin Chary Set the touchpad toggle key code from F22 to KEY_TOUCHPAD_TOGGLE, and userspace should use udev's key re-mapping facilities while X is unable to process keycodes above 255 to adjust to the keycode. Cc: Matthew Garrett Cc: Dmitry Torokhov Cc: Corentin Chary Signed-off-by: Lee, Chun-Yi --- drivers/platform/x86/acer-wmi.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/platform/x86/acer-wmi.c b/drivers/platform/x86/acer-wmi.c index 38b34a7..d10b280 100644 --- a/drivers/platform/x86/acer-wmi.c +++ b/drivers/platform/x86/acer-wmi.c @@ -109,7 +109,7 @@ static const struct key_entry acer_wmi_keymap[] = { {KE_KEY, 0x23, {KEY_PROG3} }, /* P_Key */ {KE_KEY, 0x24, {KEY_PROG4} }, /* Social networking_Key */ {KE_KEY, 0x64, {KEY_SWITCHVIDEOMODE} }, /* Display Switch */ - {KE_KEY, 0x82, {KEY_F22} }, /* Touch Pad On/Off */ + {KE_KEY, 0x82, {KEY_TOUCHPAD_TOGGLE} }, /* Touch Pad On/Off */ {KE_END, 0} }; -- 1.6.0.2