From patchwork Fri Feb 11 21:07:44 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ping Cheng X-Patchwork-Id: 550741 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 p1BL7kc7007165 for ; Fri, 11 Feb 2011 21:07:46 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758125Ab1BKVHq (ORCPT ); Fri, 11 Feb 2011 16:07:46 -0500 Received: from mail-ww0-f44.google.com ([74.125.82.44]:52400 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758107Ab1BKVHp convert rfc822-to-8bit (ORCPT ); Fri, 11 Feb 2011 16:07:45 -0500 Received: by wwa36 with SMTP id 36so3023030wwa.1 for ; Fri, 11 Feb 2011 13:07:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=OOnPKkz4new/08wHLZdcq/lhyPhICRNf9/o4vAXEqpg=; b=u7RhYPHzVGYSMyZaT6+tz6zCWTg5nVFosQontF7tclyxAp63IQxgtf3EN9Edb4BpJO purs++W2P/f9WV9tMh7CytLRQk29vxksEKpLFQuLUuhMbb6URVsjDViKyncP+6RziQ/1 qivz3XD/qf2To61X0XnTX5OHRAkfqEOSH+510= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=JTMLODBl3+O+QxY6Tl7bsYa+Mx9eyxqhg80WXLYP+kB4p2B/P2O7FqilNc/xuVtj9A vwqSHrajhWOhnVidsKvyCzMw2IZGmXGwORy0Xnb8YNsFp7X9W0iwn6uL16M6+Pf00Bld dBlgeVIV+MKvAacMZlZWQfFhYHbRgxuNpoH2g= MIME-Version: 1.0 Received: by 10.216.59.143 with SMTP id s15mr995978wec.49.1297458464256; Fri, 11 Feb 2011 13:07:44 -0800 (PST) Received: by 10.216.21.200 with HTTP; Fri, 11 Feb 2011 13:07:44 -0800 (PST) In-Reply-To: <20110211204742.GD2287@polaris.bitmath.org> References: <1297387983-13761-1-git-send-email-pinglinux@gmail.com> <20110211202010.GB2287@polaris.bitmath.org> <20110211204742.GD2287@polaris.bitmath.org> Date: Fri, 11 Feb 2011 13:07:44 -0800 Message-ID: Subject: Re: [PATCH 4/4] input - wacom: Support 2FGT in MT format From: Ping Cheng To: Henrik Rydberg Cc: linux-input@vger.kernel.org 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.6 (demeter1.kernel.org [140.211.167.41]); Fri, 11 Feb 2011 21:07:46 +0000 (UTC) diff --git a/drivers/input/tablet/wacom_wac.c b/drivers/input/tablet/wacom_wac.c index 39c289d..3cdafb9 100644 --- a/drivers/input/tablet/wacom_wac.c +++ b/drivers/input/tablet/wacom_wac.c @@ -699,7 +699,10 @@ static int wacom_tpc_mt_touch(struct wacom_wac *wacom) } /* keep touch bit to send proper touch up event */ - wacom->shared->touch_down = max(touch, wacom->shared->touch_down); + if (i == 1) + wacom->shared->touch_down = max(touch, wacom->shared->touch_down); + else + wacom->shared->touch_down = touch; }