From patchwork Wed Dec 29 07:42:20 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Torokhov X-Patchwork-Id: 437861 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oBT7f9kZ024925 for ; Wed, 29 Dec 2010 07:42:26 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750976Ab0L2Hm0 (ORCPT ); Wed, 29 Dec 2010 02:42:26 -0500 Received: from mail-iw0-f174.google.com ([209.85.214.174]:34170 "EHLO mail-iw0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750893Ab0L2HmZ (ORCPT ); Wed, 29 Dec 2010 02:42:25 -0500 Received: by iwn9 with SMTP id 9so9902108iwn.19 for ; Tue, 28 Dec 2010 23:42:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=pDhaKiKnIaj22LRc4biervK8Ye/jN6ght73t8pId8ok=; b=ekbLbTbQwa1PrEqyZE9orxONmVuA2Wjf39N+q77wGDELDwveCBlcnkiY6P5m3WWhPh ZCEBl+cCUhtiDtbHuah5AD0Tunc/lvhCzNRkaT87HhN1/B70Tfy3NRIb31KgdNKHJgim +THxWV3nAyGI5+Q/S4u4fCFg2HPveqcy9cLBM= 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=qU/PBBhmrgMKbA26NUSyV3itS3eUvYwsRWBInVF+wbuzpyXXGHvsfRDV86CIYFb4Lb MCjEWHYsdlPjRd5kZ0GTnBpg1euNltGf9IqR2rs3JBGqkJLM8VkbgUXgCGQbCPt+NJrT 9mwk7GQMkcHw4oA6eubqtiW3zsnLItsDhXqd0= Received: by 10.42.226.67 with SMTP id iv3mr2256829icb.358.1293608544965; Tue, 28 Dec 2010 23:42:24 -0800 (PST) Received: from mailhub.coreip.homeip.net (c-98-234-113-65.hsd1.ca.comcast.net [98.234.113.65]) by mx.google.com with ESMTPS id i2sm12399924icv.3.2010.12.28.23.42.23 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 28 Dec 2010 23:42:23 -0800 (PST) Date: Tue, 28 Dec 2010 23:42:20 -0800 From: Dmitry Torokhov To: Ping Cheng Cc: linux-input@vger.kernel.org, Ping Cheng Subject: Re: [PATCH 3/3 v2] input - wacom_w8001: Add one finger touch support Message-ID: <20101229074220.GB13061@core.coreip.homeip.net> References: <1292607474-22674-1-git-send-email-pinglinux@gmail.com> <20101229074058.GA13061@core.coreip.homeip.net> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20101229074058.GA13061@core.coreip.homeip.net> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Wed, 29 Dec 2010 07:42:26 +0000 (UTC) diff --git a/drivers/input/touchscreen/wacom_w8001.c b/drivers/input/touchscreen/wacom_w8001.c index ce8c8e1..01489f7 100644 --- a/drivers/input/touchscreen/wacom_w8001.c +++ b/drivers/input/touchscreen/wacom_w8001.c @@ -145,6 +145,7 @@ static void parse_multi_touch(struct w8001 *w8001) } } + input_mt_report_pointer_emulation(dev, true); input_sync(dev); } @@ -420,6 +421,9 @@ static int w8001_setup(struct w8001 *w8001) 0, touch.y, 0, 0); input_set_abs_params(dev, ABS_MT_TOOL_TYPE, 0, MT_TOOL_MAX, 0, 0); + + __set_bit(BTN_TOOL_DOUBLETAP, dev->keybit); + break; } }