From patchwork Mon Dec 20 08:52:18 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ajay Ramaswamy X-Patchwork-Id: 419461 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 oBK8qNpY008083 for ; Mon, 20 Dec 2010 08:52:23 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754410Ab0LTIwV (ORCPT ); Mon, 20 Dec 2010 03:52:21 -0500 Received: from mail-ww0-f44.google.com ([74.125.82.44]:65329 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754259Ab0LTIwU (ORCPT ); Mon, 20 Dec 2010 03:52:20 -0500 Received: by wwa36 with SMTP id 36so2703192wwa.1 for ; Mon, 20 Dec 2010 00:52:19 -0800 (PST) MIME-Version: 1.0 Received: by 10.216.15.75 with SMTP id e53mr6976223wee.107.1292835138202; Mon, 20 Dec 2010 00:52:18 -0800 (PST) Received: by 10.216.71.202 with HTTP; Mon, 20 Dec 2010 00:52:18 -0800 (PST) In-Reply-To: References: Date: Mon, 20 Dec 2010 14:22:18 +0530 X-Google-Sender-Auth: w6D60Nnz32LF4ml1v6F6g05gfSs Message-ID: Subject: Re: [PATCH] Add support for the built-in digitizer in the Lenovo W700 From: Ajay Ramaswamy To: Ping Cheng , linux-input@vger.kernel.org Cc: peter.hutterer@who-t.net, linuxwacom-devel@lists.sourceforge.net 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 (demeter1.kernel.org [140.211.167.41]); Mon, 20 Dec 2010 08:52:24 +0000 (UTC) From 8565e03c5995944d628fd1f8041ff00313600fa7 Mon Sep 17 00:00:00 2001 From: Ajay Ramaswamy Date: Mon, 20 Dec 2010 14:14:23 +0530 Subject: [PATCH] Add support for the built-in digitizer in the Lenovo W700 Submitted-by: Ajay Ramaswamy --- drivers/input/tablet/wacom.h | 1 + drivers/input/tablet/wacom_wac.c | 7 +++++++ 2 files changed, 8 insertions(+), 0 deletions(-) diff --git a/drivers/input/tablet/wacom.h b/drivers/input/tablet/wacom.h index de5adb1..23317bd 100644 --- a/drivers/input/tablet/wacom.h +++ b/drivers/input/tablet/wacom.h @@ -103,6 +103,7 @@ MODULE_DESCRIPTION(DRIVER_DESC); MODULE_LICENSE(DRIVER_LICENSE); #define USB_VENDOR_ID_WACOM 0x056a +#define USB_VENDOR_ID_LENOVO 0x17ef struct wacom { dma_addr_t data_dma; diff --git a/drivers/input/tablet/wacom_wac.c b/drivers/input/tablet/wacom_wac.c index 0b05254..0024d3e 100644 --- a/drivers/input/tablet/wacom_wac.c +++ b/drivers/input/tablet/wacom_wac.c @@ -1424,11 +1424,17 @@ static struct wacom_features wacom_features_0xD2 = { "Wacom Bamboo Craft", WACOM_PKGLEN_BBFUN, 14720, 9200, 1023, 63, BAMBOO_PT }; static struct wacom_features wacom_features_0xD3 = { "Wacom Bamboo 2FG 6x8", WACOM_PKGLEN_BBFUN, 21648, 13530, 1023, 63, BAMBOO_PT }; +static const struct wacom_features wacom_features_0x6004 = + { "ISD-V4", WACOM_PKGLEN_GRAPHIRE, 12800, 8000, 255, 0, TABLETPC }; #define USB_DEVICE_WACOM(prod) \ USB_DEVICE(USB_VENDOR_ID_WACOM, prod), \ .driver_info = (kernel_ulong_t)&wacom_features_##prod +#define USB_DEVICE_LENOVO(prod) \ + USB_DEVICE(USB_VENDOR_ID_LENOVO, prod), \ + .driver_info = (kernel_ulong_t)&wacom_features_##prod + const struct usb_device_id wacom_ids[] = { { USB_DEVICE_WACOM(0x00) }, { USB_DEVICE_WACOM(0x10) }, @@ -1501,6 +1507,7 @@ const struct usb_device_id wacom_ids[] = { { USB_DEVICE_WACOM(0xE2) }, { USB_DEVICE_WACOM(0xE3) }, { USB_DEVICE_WACOM(0x47) }, + { USB_DEVICE_LENOVO(0x6004) }, { } }; MODULE_DEVICE_TABLE(usb, wacom_ids); -- 1.7.3.4