Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755252Ab1CaFdd (ORCPT ); Thu, 31 Mar 2011 01:33:33 -0400 Received: from mail-iy0-f174.google.com ([209.85.210.174]:42745 "EHLO mail-iy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754845Ab1CaFdb (ORCPT ); Thu, 31 Mar 2011 01:33:31 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=NQdA8zed47KH5Pz6jUrWvAqfKqzGSPVrN5vtUbS5CGkeTUFvy/D+qAuO4jBXGX52bu nNHSUgk1B84+LkjdL8rbtjQ9mnKktbpkL9XSj0M97I99d8NTnQ81ReMW1sGK9jxKle+3 v9e3NqcSUBvOcolIySvF/Og64zfKVXJxJtHpQ= Date: Wed, 30 Mar 2011 22:33:24 -0700 From: Dmitry Torokhov To: wanlong.gao@gmail.com Cc: w.sang@pengutronix.de, rpurdie@linux.intel.com, broonie@opensource.wolfsonmicro.com, khali@linux-fr.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, jiaweiwei.xiyou@gmail.com Subject: Re: [PATCH V2] Add the support of the touchscreen keypad of tsc2007 . Message-ID: <20110331053324.GB31630@core.coreip.homeip.net> References: <1301219192-5293-1-git-send-email-wanlong.gao@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1301219192-5293-1-git-send-email-wanlong.gao@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1311 Lines: 33 Hi Wanlong, On Sun, Mar 27, 2011 at 05:46:32PM +0800, wanlong.gao@gmail.com wrote: > From: Wanlong Gao > > Many touchscreens support touch-keypad . > Open the definition of the TOUCHSCREEN_TSC2007_WITH_KEYPAD, you can > open the support of the touchscreen's keypad . > We can add the support of the touchscreen keypad in the driver. > In this patch , add the ts_key_pos array to determine the position > of the key's X. And the ts_key_sensitivity can use to detemine the > key's sensitivity. You can modify the ts_key_pos array for you own > touchscreen keys . And modify the ts_key_sensitivity for you own > key's sensitivity . > If you want to modify the ts_key_map, change the position of the > keys ,too. No, this kind of data transformation does not belong to a driver (or, really in kernel). It is in no way TSC2007 specific (any touchscreen could be used in place of TSC2007 here). Do it in userspace and either loop the events back into kernel (after parsing) via uinput or feed directly into your framework. Thanks. -- Dmitry -- 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/