From patchwork Fri Jan 25 13:22:57 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Tissoires X-Patchwork-Id: 2045301 X-Patchwork-Delegate: jikos@jikos.cz Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 7174E3FD1A for ; Fri, 25 Jan 2013 13:28:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932419Ab3AYN2A (ORCPT ); Fri, 25 Jan 2013 08:28:00 -0500 Received: from mail-bk0-f52.google.com ([209.85.214.52]:35251 "EHLO mail-bk0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932401Ab3AYNX5 (ORCPT ); Fri, 25 Jan 2013 08:23:57 -0500 Received: by mail-bk0-f52.google.com with SMTP id jk13so232009bkc.25 for ; Fri, 25 Jan 2013 05:23:55 -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=TkXufb6w/wKCQlqIKqe9s0q64d2I+xHNTFY98g0d26g=; b=HxgvfIDVQhcahqBSG3lVwujNVuAO/moodaJiIWT6vKAKu/y3p3dXIZSNP7T3XqfV60 kmTgJM60M8D2zYjkH00P9+6WXoSklebl4COz3koCYVMf/Nwz7GaxrHxl9LS5Jr6X13U4 pHJrdgxrpyyBA6YAMp+mGtKnDm/KeM1v5Cyno4lh8Beq5ClHbAotivLlNdPc0l6NCYeW veUqF0rjBVqoqaoZH42RRB3aKoYhAFUY14XkaaD1+pb8QISLd+RVjsSB+V1CjHeLr/st vflRzYp2/7hcRULL8YHZHb71jQ3hlQqWCdbpxs+lu9QE7+gjLB+ufziw70NHVRw30KZq 0acw== X-Received: by 10.204.156.81 with SMTP id v17mr1849866bkw.18.1359120235866; Fri, 25 Jan 2013 05:23:55 -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.53 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 25 Jan 2013 05:23:55 -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 12/25] HID: multitouch: optimize Lumio panels Date: Fri, 25 Jan 2013 14:22:57 +0100 Message-Id: <1359120190-18281-13-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 Not very different in terms of processing time. However, this uniformizes the handling of devices. Signed-off-by: Benjamin Tissoires --- drivers/hid/hid-multitouch.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/hid/hid-multitouch.c b/drivers/hid/hid-multitouch.c index 8b07b6b..d66c4d7 100644 --- a/drivers/hid/hid-multitouch.c +++ b/drivers/hid/hid-multitouch.c @@ -120,6 +120,7 @@ struct mt_device { #define MT_CLS_INRANGE_CONTACTNUMBER 0x0009 #define MT_CLS_ALWAYS_TRUE 0x000a #define MT_CLS_CONTACT_ID 0x0011 +#define MT_CLS_MINUS_ONE 0x0012 /* vendor specific classes */ #define MT_CLS_3M 0x0101 @@ -186,6 +187,10 @@ static struct mt_class mt_classes[] = { .quirks = MT_QUIRK_ALWAYS_VALID | MT_QUIRK_CONTACT_CNT_ACCURATE | MT_QUIRK_SLOT_IS_CONTACTID }, + { .name = MT_CLS_MINUS_ONE, + .quirks = MT_QUIRK_ALWAYS_VALID | + MT_QUIRK_CONTACT_CNT_ACCURATE | + MT_QUIRK_SLOT_IS_CONTACTID_MINUS_ONE }, /* * vendor specific classes @@ -1101,10 +1106,10 @@ static const struct hid_device_id mt_devices[] = { USB_DEVICE_ID_LG_MULTITOUCH) }, /* Lumio panels */ - { .driver_data = MT_CLS_CONFIDENCE_MINUS_ONE, + { .driver_data = MT_CLS_MINUS_ONE, MT_USB_DEVICE(USB_VENDOR_ID_LUMIO, USB_DEVICE_ID_CRYSTALTOUCH) }, - { .driver_data = MT_CLS_CONFIDENCE_MINUS_ONE, + { .driver_data = MT_CLS_MINUS_ONE, MT_USB_DEVICE(USB_VENDOR_ID_LUMIO, USB_DEVICE_ID_CRYSTALTOUCH_DUAL) },