From patchwork Fri Jan 25 13:23:07 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Tissoires X-Patchwork-Id: 2045141 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 8E32E3FD1A for ; Fri, 25 Jan 2013 13:26:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932464Ab3AYNZe (ORCPT ); Fri, 25 Jan 2013 08:25:34 -0500 Received: from mail-bk0-f45.google.com ([209.85.214.45]:41386 "EHLO mail-bk0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932479Ab3AYNYS (ORCPT ); Fri, 25 Jan 2013 08:24:18 -0500 Received: by mail-bk0-f45.google.com with SMTP id i18so234704bkv.32 for ; Fri, 25 Jan 2013 05:24:17 -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=z04iPSp7w41/tzhReFLXfN5obu6PRsBG/2Q8T1MS4S8=; b=jL5aqRR2CbojinZ2oTnHY92VaGuWc6AIKn5p+eMjDqTtQhbKGVusvxejn/n7LstQhp 2r96QcfiiE+f+WgVUQn03+6kZE7iaWWC+D+CMvRPoMUDDQ6lr6HKND1Kyp+zCfttmvDy uwYC/CYWN13R0MenukrCUWXB42oUbfGQOYM0yMW6wBspwJuaOP5nGXbmyD7FGH3VrzTB ZdjT3YLiMpMwXmXLlyL9qRpuacwSFJNu5FLg3Qv54NELjMf7j0zp6wzFERIdpOxXX6Q3 DtCVfAv45fwiIMZ+c53q3sEHqI3Lu+OxMf55NvEzfQ1meE89hZXekl8+3CdtHFnxw9s4 JrBA== X-Received: by 10.204.128.65 with SMTP id j1mr1840969bks.56.1359120256965; Fri, 25 Jan 2013 05:24:16 -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.24.14 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 25 Jan 2013 05:24:16 -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 22/25] HID: multitouch: optimize LG panels Date: Fri, 25 Jan 2013 14:23:07 +0100 Message-Id: <1359120190-18281-23-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. Also, the slot can be extracted by using the contact ID. Signed-off-by: Benjamin Tissoires --- drivers/hid/hid-multitouch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hid/hid-multitouch.c b/drivers/hid/hid-multitouch.c index fe1aa3b..34153f9 100644 --- a/drivers/hid/hid-multitouch.c +++ b/drivers/hid/hid-multitouch.c @@ -1113,7 +1113,7 @@ static const struct hid_device_id mt_devices[] = { USB_DEVICE_ID_IRTOUCH_INFRARED_USB) }, /* LG Display panels */ - { .driver_data = MT_CLS_DEFAULT, + { .driver_data = MT_CLS_CONTACT_ID, MT_USB_DEVICE(USB_VENDOR_ID_LG, USB_DEVICE_ID_LG_MULTITOUCH) },