From patchwork Wed Aug 11 03:48:20 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xing Wei X-Patchwork-Id: 118733 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o7B3tdSc007209 for ; Wed, 11 Aug 2010 03:55:39 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758035Ab0HKDzV (ORCPT ); Tue, 10 Aug 2010 23:55:21 -0400 Received: from hanwang.com.cn ([221.122.51.51]:56288 "EHLO mail.hanwang.com.cn" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753109Ab0HKDzU (ORCPT ); Tue, 10 Aug 2010 23:55:20 -0400 Received: (qmail 7650 invoked by uid 889); 11 Aug 2010 11:48:30 +0800 Received: by simscan 1.3.1 ppid: 7642, pid: 7647, t: 0.0117s scanners: attach: 1.3.1 clamav: 0.95.2/m: Received: from unknown (HELO weixing) (weixing@hanwang.com.cn@172.16.7.154) by mail.hanwang.com.cn with ESMTPA; 11 Aug 2010 11:48:30 +0800 Date: Wed, 11 Aug 2010 11:48:20 +0800 From: "Xing Wei" To: "jkosina" Cc: "linux-input" , "linux-kernel" Subject: [PATCH trivial] drivers/hid: the support for Hanwang tablet Message-ID: <201008111148203123394@hanwang.com.cn> X-mailer: Foxmail 6, 15, 201, 23 [cn] Mime-Version: 1.0 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.3 (demeter.kernel.org [140.211.167.41]); Wed, 11 Aug 2010 03:55:39 +0000 (UTC) diff -uprN -X linux-2.6.35-vanilla/Documentation/dontdiff linux-2.6.35-vanilla/drivers/hid/hid-core.c devel/linux-2.6.35/drivers/hid/hid-core.c --- linux-2.6.35-vanilla/drivers/hid/hid-core.c 2010-08-02 06:11:14.000000000 +0800 +++ devel/linux-2.6.35/drivers/hid/hid-core.c 2010-08-11 18:20:13.832088816 +0800 @@ -1759,6 +1759,11 @@ static bool hid_ignore(struct hid_device hdev->product <= USB_DEVICE_ID_SOUNDGRAPH_IMON_LAST) return true; break; + case USB_VENDOR_ID_HANWANG: + if (hdev->product >= USB_DEVICE_ID_HANWANG_TABLET_FIRST && + hdev->product <= USB_DEVICE_ID_HANWANG_TABLET_LAST) + return true; + break; } if (hdev->type == HID_TYPE_USBMOUSE && diff -uprN -X linux-2.6.35-vanilla/Documentation/dontdiff linux-2.6.35-vanilla/drivers/hid/hid-ids.h devel/linux-2.6.35/drivers/hid/hid-ids.h --- linux-2.6.35-vanilla/drivers/hid/hid-ids.h 2010-08-02 06:11:14.000000000 +0800 +++ devel/linux-2.6.35/drivers/hid/hid-ids.h 2010-08-11 18:17:32.967089161 +0800 @@ -526,5 +526,8 @@ #define USB_DEVICE_ID_KYE_ERGO_525V 0x0087 #define USB_DEVICE_ID_KYE_GPEN_560 0x5003 +#define USB_VENDOR_ID_HANWANG 0x0b57 +#define USB_DEVICE_ID_HANWANG_TABLET_LAST 0x8fff +#define USB_DEVICE_ID_HANWANG_TABLET_FIRST 0x5000 #endif