From patchwork Thu Aug 13 23:52:00 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lamarque Vieira Souza X-Patchwork-Id: 41293 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n7DNqKHM026533 for ; Thu, 13 Aug 2009 23:52:20 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752913AbZHMXwS (ORCPT ); Thu, 13 Aug 2009 19:52:18 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754272AbZHMXwS (ORCPT ); Thu, 13 Aug 2009 19:52:18 -0400 Received: from mail-qy0-f196.google.com ([209.85.221.196]:48021 "EHLO mail-qy0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752913AbZHMXwR (ORCPT ); Thu, 13 Aug 2009 19:52:17 -0400 Received: by qyk34 with SMTP id 34so911020qyk.33 for ; Thu, 13 Aug 2009 16:52:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:cc:references:in-reply-to:mime-version:content-type :message-id; bh=T7lFHlTQTmlrQ2M0pyuq7kyT01DNVHhJLqXoC5TO7Ng=; b=U/zNOFPA3LKGncmn/bfgeoFnbTTnAr93FpCJmbxL/pYNN12IRgH3u26TxhY+10PhMj sL2N8pwwXWYn0KqRnddZuzm/JbNKAS0w03kZKfp/NtuTq0Z9ghgy2yjZssCAb70Zel8w eRQGyh8SKO8K2PKy2C6Zo8Fq0SCjqsyB8ymrI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:cc:references:in-reply-to :mime-version:content-type:message-id; b=u2xi8e2x7Xp+9j7iYihbw0JCV4odyIsxzlWnB6XN2M14k3IwYsQo282YiZQfujwqBd Lu6y48f82Z6fzmPr9cZiZRTrYNeydjBO4XG9+dm4ggLQPhttenwmZPprDEk7+oyNO/0H Y5mLe6VdmPIwqNwAtVmOlhGE9EIG4Jk89X9jE= Received: by 10.224.3.212 with SMTP id 20mr1862321qao.239.1250207537476; Thu, 13 Aug 2009 16:52:17 -0700 (PDT) Received: from evolucao.divilinux.net (187-25-49-130.3g.claro.net.br [187.25.49.130]) by mx.google.com with ESMTPS id 6sm93772qwd.58.2009.08.13.16.52.11 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 13 Aug 2009 16:52:16 -0700 (PDT) From: Lamarque Vieira Souza To: Jiri Kosina Subject: Re: Problem with Acer Bluetooth Optical Rechargeable Mouse Date: Thu, 13 Aug 2009 20:52:00 -0300 User-Agent: KMail/1.12.0 (Linux/2.6.30.4-lvs; KDE/4.3.0; x86_64; ; ) Cc: linux-input@vger.kernel.org, Marcel Holtmann , Andrew Morton References: <200908062247.29254.lamarque@gmail.com> <200908072223.21450.lamarque@gmail.com> In-Reply-To: MIME-Version: 1.0 Message-Id: <200908132052.01012.lamarque@gmail.com> Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org I think I have found a good solution for my problem, see the attached patch. I just need to find a better name for the define USB_DEVICE_ID_KYE_58. diff -Nru --show-c-function a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c --- a/drivers/hid/hid-core.c 2009-08-13 20:45:11.000000000 -0300 +++ b/drivers/hid/hid-core.c 2009-08-13 20:46:12.000000000 -0300 @@ -1636,6 +1636,7 @@ static const struct hid_device_id hid_ig { HID_USB_DEVICE(USB_VENDOR_ID_WISEGROUP, USB_DEVICE_ID_1_PHIDGETSERVO_20) }, { HID_USB_DEVICE(USB_VENDOR_ID_WISEGROUP, USB_DEVICE_ID_8_8_4_IF_KIT) }, { HID_USB_DEVICE(USB_VENDOR_ID_YEALINK, USB_DEVICE_ID_YEALINK_P1K_P4K_B2K) }, + { HID_USB_DEVICE(USB_VENDOR_ID_KYE, USB_DEVICE_ID_KYE_58) }, { } }; diff -Nru --show-c-function a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h --- a/drivers/hid/hid-ids.h 2009-08-13 20:45:04.000000000 -0300 +++ b/drivers/hid/hid-ids.h 2009-08-13 20:51:24.172588296 -0300 @@ -434,6 +434,7 @@ #define USB_VENDOR_ID_KYE 0x0458 #define USB_DEVICE_ID_KYE_ERGO_525V 0x0087 #define USB_DEVICE_ID_KYE_GPEN_560 0x5003 +#define USB_DEVICE_ID_KYE_58 0x0058 #endif