Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761128AbZDIIX3 (ORCPT ); Thu, 9 Apr 2009 04:23:29 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1760791AbZDIIWx (ORCPT ); Thu, 9 Apr 2009 04:22:53 -0400 Received: from mailservice.tudelft.nl ([130.161.131.5]:8641 "EHLO mailservice.tudelft.nl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758460AbZDIIWt (ORCPT ); Thu, 9 Apr 2009 04:22:49 -0400 X-Spam-Flag: NO X-Spam-Score: -14.389 Message-ID: <49DDB053.4010809@tremplin-utc.net> Date: Thu, 09 Apr 2009 10:22:43 +0200 From: =?ISO-8859-1?Q?=C9ric_Piel?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.21) Gecko/20090319 Mandriva/2.0.0.21-1mdv2009.1 (2009.1) Thunderbird/2.0.0.21 Mnenhy/0.7.5.0 MIME-Version: 1.0 To: Rafi Rubin Cc: Matthew Garrett , mjg59@srcf.ucam.org, Len Brown , linux-kernel@vger.kernel.org Subject: Re: [PATCH] Additional keys for dell-wmi References: <200904082116.n38LG4Df012420@ampersand.seas.upenn.edu> In-Reply-To: <200904082116.n38LG4Df012420@ampersand.seas.upenn.edu> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1350 Lines: 33 Rafi Rubin schreef: > Added key codes generated by screen rotation on the Latitude XT. 0xe046 is sent when changing to tablet mode, and 0xe047 when it returns to desktop mode. > > Signed-off-by: Rafi Rubin > --- > drivers/platform/x86/dell-wmi.c | 2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > > diff --git a/drivers/platform/x86/dell-wmi.c b/drivers/platform/x86/dell-wmi.c > index 2fab941..b76ef49 100644 > --- a/drivers/platform/x86/dell-wmi.c > +++ b/drivers/platform/x86/dell-wmi.c > @@ -50,6 +50,8 @@ enum { KE_KEY, KE_SW, KE_END }; > > static struct key_entry dell_wmi_keymap[] = { > {KE_KEY, 0xe045, KEY_PROG1}, > + {KE_KEY, 0xe046, KEY_PROG2}, > + {KE_KEY, 0xe047, KEY_PROG3}, > {KE_END, 0} Hello, PROG2 and PROG3? That's so mundane! Fair enough, I've checked in linux/input.h and couldn't find exactly fitting code keys (SWITCHVIDEOMODE, VIDEO_NEXT, VIDEO_PREV are not exactly about rotation). At least, it would be worth adding a comment after each line about which key does what, so that it's not necessary to read the changelog to know! Eric -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/