From patchwork Fri May 27 18:03:47 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Austin Zhang X-Patchwork-Id: 825132 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 p4RHxnLc025400 for ; Fri, 27 May 2011 17:59:50 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756727Ab1E0R7o (ORCPT ); Fri, 27 May 2011 13:59:44 -0400 Received: from mail-pw0-f46.google.com ([209.85.160.46]:64745 "EHLO mail-pw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750777Ab1E0R7l (ORCPT ); Fri, 27 May 2011 13:59:41 -0400 Received: by pwi15 with SMTP id 15so903861pwi.19 for ; Fri, 27 May 2011 10:59:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer; bh=/wAW9d7Ph/9Tq8kx12vzeOov/K7XUWSjSbXSTnhiTSQ=; b=w/V6SF681WfcDodjjXJjbOXe2BDCFg+KpNFBzsz0ZxKhOqJ+o8zaka9zQLL8wrcQN+ 10ufdfXkxQ5Z5Toe3Ug0adFUnlAM/iydmwDQTz1NHDqc9tkB5o4I7ucDwQRjSdg/4uYZ c2TfaL/rQGaiTe+EL+64KBAjVBFeVsOfV8Ogs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=f198tdY4gLeHQRFGDmzqrjgIwSldo9E7N1TAqZpheAuMrn8IcvfXgOsoOy9WnM50Nk AJEPOmUuFjGadiV10gjB5LzyEr6K4r7/rUOiywUR2lodfw1qCNM8hd0UGEDd9E2msvA8 o9vjY4I0MPQ5FuKqhokfx8EIkQpR4I/rJEVkA= Received: by 10.68.15.231 with SMTP id a7mr1013039pbd.37.1306519180614; Fri, 27 May 2011 10:59:40 -0700 (PDT) Received: from localhost.localdomain (shzdmzpr01-ext.sh.intel.com [192.102.204.36]) by mx.google.com with ESMTPS id w2sm675909pbg.85.2011.05.27.10.59.37 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 27 May 2011 10:59:40 -0700 (PDT) From: Austin Zhang To: linux-input@vger.kernel.org, jkosina@suse.cz, dmitry.torokhov@gmail.com, benjamin.tissoires@enac.fr, chatty@enac.fr, rydberg@euromail.se Cc: Austin Zhang Subject: [PATCH]HID: hid-multitouch: add support for Chunghwa multi-touch panel Date: Sat, 28 May 2011 02:03:47 +0800 Message-Id: <1306519427-5425-1-git-send-email-zhang.austin@gmail.com> X-Mailer: git-send-email 1.7.2.3 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, 27 May 2011 17:59:50 +0000 (UTC) Added Chunghwa hid multitouch panel support into hid-multitouch. Signed-off-by: Austin Zhang Reviewed-by: Benjamin Tissoires --- Kconfig | 1 + hid-core.c | 1 + hid-ids.h | 3 +++ hid-multitouch.c | 5 +++++ 4 files changed, 10 insertions(+) -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig index 67d2a75..36ca465 100644 --- a/drivers/hid/Kconfig +++ b/drivers/hid/Kconfig @@ -305,6 +305,7 @@ config HID_MULTITOUCH - 3M PCT touch screens - ActionStar dual touch panels - Cando dual touch panels + - Chunghwa panels - CVTouch panels - Cypress TrueTouch panels - Elo TouchSystems IntelliTouch Plus panels diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c index c957c4b..f7440e8 100644 --- a/drivers/hid/hid-core.c +++ b/drivers/hid/hid-core.c @@ -1359,6 +1359,7 @@ static const struct hid_device_id hid_have_special_driver[] = { { HID_USB_DEVICE(USB_VENDOR_ID_CHERRY, USB_DEVICE_ID_CHERRY_CYMOTION_SOLAR) }, { HID_USB_DEVICE(USB_VENDOR_ID_CHICONY, USB_DEVICE_ID_CHICONY_TACTICAL_PAD) }, { HID_USB_DEVICE(USB_VENDOR_ID_CHICONY, USB_DEVICE_ID_CHICONY_WIRELESS) }, + { HID_USB_DEVICE(USB_VENDOR_ID_CHUNGHWAT, USB_DEVICE_ID_CHUNGHWAT_MULTITOUCH) }, { HID_USB_DEVICE(USB_VENDOR_ID_CREATIVELABS, USB_DEVICE_ID_PRODIKEYS_PCMIDI) }, { HID_USB_DEVICE(USB_VENDOR_ID_CVTOUCH, USB_DEVICE_ID_CVTOUCH_SCREEN) }, { HID_USB_DEVICE(USB_VENDOR_ID_CYPRESS, USB_DEVICE_ID_CYPRESS_BARCODE_1) }, diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h index 0b374a6..82be975 100644 --- a/drivers/hid/hid-ids.h +++ b/drivers/hid/hid-ids.h @@ -173,6 +173,9 @@ #define USB_DEVICE_ID_CHICONY_MULTI_TOUCH 0xb19d #define USB_DEVICE_ID_CHICONY_WIRELESS 0x0618 +#define USB_VENDOR_ID_CHUNGHWAT 0x2247 +#define USB_DEVICE_ID_CHUNGHWAT_MULTITOUCH 0x0001 + #define USB_VENDOR_ID_CIDC 0x1677 #define USB_VENDOR_ID_CMEDIA 0x0d8c diff --git a/drivers/hid/hid-multitouch.c b/drivers/hid/hid-multitouch.c index ecd4d2d..8bc32a0 100644 --- a/drivers/hid/hid-multitouch.c +++ b/drivers/hid/hid-multitouch.c @@ -593,6 +593,11 @@ static const struct hid_device_id mt_devices[] = { HID_USB_DEVICE(USB_VENDOR_ID_CANDO, USB_DEVICE_ID_CANDO_MULTI_TOUCH_15_6) }, + /* Chunghwa Telecom touch panels */ + { .driver_data = MT_CLS_DEFAULT, + HID_USB_DEVICE(USB_VENDOR_ID_CHUNGHWAT, + USB_DEVICE_ID_CHUNGHWAT_MULTITOUCH) }, + /* CVTouch panels */ { .driver_data = MT_CLS_DEFAULT, HID_USB_DEVICE(USB_VENDOR_ID_CVTOUCH,