From patchwork Fri May 27 08:20:09 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Austin Zhang X-Patchwork-Id: 823242 X-Patchwork-Delegate: jikos@jikos.cz 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 p4R8KDIF031190 for ; Fri, 27 May 2011 08:20:14 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752092Ab1E0IUM (ORCPT ); Fri, 27 May 2011 04:20:12 -0400 Received: from mail-pw0-f46.google.com ([209.85.160.46]:32885 "EHLO mail-pw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752453Ab1E0IUK (ORCPT ); Fri, 27 May 2011 04:20:10 -0400 Received: by pwi15 with SMTP id 15so701310pwi.19 for ; Fri, 27 May 2011 01:20:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=IlTudjek9pc1sOSjEY3e3L5fG2ZBMwz5JsB7h1Rp4QU=; b=gf6W6H+iQOeqxWrNYPj0Fg+oWG8EP8TquCmk/DPY3NwNTRpH8/9MO+ANsIjYdZHNmO isnJs6m8p/CoHlwcfa4/ZOqDGQp2uYjUDTn12+H7m2dZYH16zKNZ/3cDhWTVw9xLOiYO 1rv4WPm8YOyrWoIPsnW+FQTs+g7L/+71yARqw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=WmgF6AuJyIzlwv06X5TlsUehFAqmcqwSHAdZ9xoIAZl/8RQiYcVBEsMZNZ7hFnIguK U0wbHs4SVnpdaV275Hmo+pbixmeddC6X2asbJY+gI6FzotJIMRpA9Oz5XOCCTzEJssQt l/Avypgw/HbPWe8vISIvbyL4CKZypYyeFJMvQ= MIME-Version: 1.0 Received: by 10.68.23.166 with SMTP id n6mr684308pbf.481.1306484410008; Fri, 27 May 2011 01:20:10 -0700 (PDT) Received: by 10.68.54.71 with HTTP; Fri, 27 May 2011 01:20:09 -0700 (PDT) Date: Fri, 27 May 2011 16:20:09 +0800 Message-ID: Subject: [PATCH]HID: hid-multitouch: add support for Chunghwa multi-touch panel From: Austin Zhang To: linux-input@vger.kernel.org, jkosina@suse.cz, dmitry.torokhov@gmail.com, Benjamin Tissoires 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 08:20:14 +0000 (UTC) Added Chunghwa hid multitouch panel support into hid-multitouch. Signed-off-by: Austin Zhang --- 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,