From patchwork Fri Jan 25 13:22:59 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Tissoires X-Patchwork-Id: 2045261 X-Patchwork-Delegate: jikos@jikos.cz Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id BB422E0175 for ; Fri, 25 Jan 2013 13:27:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932435Ab3AYN1S (ORCPT ); Fri, 25 Jan 2013 08:27:18 -0500 Received: from mail-bk0-f43.google.com ([209.85.214.43]:50617 "EHLO mail-bk0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932421Ab3AYNYB (ORCPT ); Fri, 25 Jan 2013 08:24:01 -0500 Received: by mail-bk0-f43.google.com with SMTP id jf20so236542bkc.16 for ; Fri, 25 Jan 2013 05:23:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:subject:date:message-id:x-mailer:in-reply-to :references; bh=oP/dvKHJN/kt0LLO55LFrjt4NS9DdwpRslYEb/a1UzI=; b=ndKvrDMqBznXcIsZF4RU+IyGbURfJzDyOIweAmd0QhaV3yRIe101fmP/ksBnNOPX2p caRAjEwpePTurnmcLhV/kwECJ2M5dUdtBbvXZfOi0hbFV7I53Vj/MnFJ8fQXHZ4dSg6I IC83OxIEew0EZ4hiqB8y370QsNhp0k3mgx0JQLljQ7t5i9X5ENYt11nK6EVNK/BMFXG8 Z3lllFwrDlnsv+XsY9yORtN+z/pR8gMrVhhNkO5mgRrOE9aioM1jGVRheC84Hs70zYfz WwOzyy8sAzA70AKpwYmCvMNeegihZKXpa4xpvRib9MAf6xJGjknAVjEWrwVkHGUumlQ9 l08A== X-Received: by 10.204.9.12 with SMTP id j12mr805875bkj.89.1359120239794; Fri, 25 Jan 2013 05:23:59 -0800 (PST) Received: from localhost.localdomain.com (lan31-8-82-247-176-67.fbx.proxad.net. [82.247.176.67]) by mx.google.com with ESMTPS id hu20sm759377bkc.12.2013.01.25.05.23.58 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 25 Jan 2013 05:23:59 -0800 (PST) From: Benjamin Tissoires To: Benjamin Tissoires , Dmitry Torokhov , Henrik Rydberg , Jiri Kosina , Stephane Chatty , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 14/25] HID: multitouch: optimize Elo panels Date: Fri, 25 Jan 2013 14:22:59 +0100 Message-Id: <1359120190-18281-15-git-send-email-benjamin.tissoires@gmail.com> X-Mailer: git-send-email 1.8.1 In-Reply-To: <1359120190-18281-1-git-send-email-benjamin.tissoires@gmail.com> References: <1359120190-18281-1-git-send-email-benjamin.tissoires@gmail.com> Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org Relying on ALWAYS_VALID enhance a little the processing time of the events. Signed-off-by: Benjamin Tissoires --- drivers/hid/hid-multitouch.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/hid/hid-multitouch.c b/drivers/hid/hid-multitouch.c index bc680b5..77f34ad 100644 --- a/drivers/hid/hid-multitouch.c +++ b/drivers/hid/hid-multitouch.c @@ -121,6 +121,7 @@ struct mt_device { #define MT_CLS_ALWAYS_TRUE 0x000a #define MT_CLS_CONTACT_ID 0x0011 #define MT_CLS_MINUS_ONE 0x0012 +#define MT_CLS_DUAL_CONTACT_ID 0x0013 /* vendor specific classes */ #define MT_CLS_3M 0x0101 @@ -191,6 +192,11 @@ static struct mt_class mt_classes[] = { .quirks = MT_QUIRK_ALWAYS_VALID | MT_QUIRK_CONTACT_CNT_ACCURATE | MT_QUIRK_SLOT_IS_CONTACTID_MINUS_ONE }, + { .name = MT_CLS_DUAL_CONTACT_ID, + .quirks = MT_QUIRK_ALWAYS_VALID | + MT_QUIRK_CONTACT_CNT_ACCURATE | + MT_QUIRK_SLOT_IS_CONTACTID, + .maxcontacts = 2 }, /* * vendor specific classes @@ -1050,7 +1056,7 @@ static const struct hid_device_id mt_devices[] = { USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH_72C4) }, /* Elo TouchSystems IntelliTouch Plus panel */ - { .driver_data = MT_CLS_DUAL_NSMU_CONTACTID, + { .driver_data = MT_CLS_DUAL_CONTACT_ID, MT_USB_DEVICE(USB_VENDOR_ID_ELO, USB_DEVICE_ID_ELO_TS2515) },