From patchwork Thu Dec 24 02:12:23 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcin Tolysz X-Patchwork-Id: 69671 X-Patchwork-Delegate: jikos@jikos.cz Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.2) with ESMTP id nBO2ChDa027189 for ; Thu, 24 Dec 2009 02:12:43 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751341AbZLXCMm (ORCPT ); Wed, 23 Dec 2009 21:12:42 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751386AbZLXCMm (ORCPT ); Wed, 23 Dec 2009 21:12:42 -0500 Received: from ey-out-2122.google.com ([74.125.78.26]:56507 "EHLO ey-out-2122.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751341AbZLXCMl (ORCPT ); Wed, 23 Dec 2009 21:12:41 -0500 Received: by ey-out-2122.google.com with SMTP id 25so636546eya.19 for ; Wed, 23 Dec 2009 18:12:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=+7My8cgPhiV/HvN+rmOz+/cbCLwL6izGuNi4Np1u3JE=; b=NRiI3z7Gw9HJDBae1Gwywobt/ifjzD40HCmyv0klcVFDZAieL3Y/r6L628S/Q7dHQp P5QIup7PnFPmdDcP1ANDret0vjyMkCFALk0qR+OHcvr/GbRRNNl0EKKvlhZ6Qkw7FNPi vZqnMKpQB06Nu/LnlrzJO2vPPe49qMg18YPLk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=Qi2pmWSXjx97EEoPmHWYas+CUmw+5C9+UO5D5i3NwtK9HEQ2RTnftvfiQqFc+IVy3N wTTV4vua8LB9iCtjfQBT3dmq3+xzoLXSevhIhnedN43OxvOr36dX3A3aCloVg80Bdg+V xiqzmoxjxl3iKfEMuK/Vf1jEeGbLDjEybZl3w= Received: by 10.213.107.16 with SMTP id z16mr13400841ebo.47.1261620759902; Wed, 23 Dec 2009 18:12:39 -0800 (PST) Received: from ?192.168.1.10? (cpc6-croy10-0-0-cust79.croy.cable.virginmedia.com [77.96.104.80]) by mx.google.com with ESMTPS id 15sm5526191ewy.8.2009.12.23.18.12.38 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 23 Dec 2009 18:12:39 -0800 (PST) Message-ID: <4B32CE07.6020103@gmail.com> Date: Thu, 24 Dec 2009 02:12:23 +0000 From: Marcin Tolysz User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20091109) MIME-Version: 1.0 To: linux-input@vger.kernel.org Subject: [RFC] Simple but effective way of chaging HID device descriptors Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c index 80792d3..5d8d656 100644 --- a/drivers/hid/hid-core.c +++ b/drivers/hid/hid-core.c @@ -27,6 +27,7 @@ #include #include #include +#include #include #include @@ -640,6 +641,10 @@ int hid_parse_report(struct hid_device *device, __u8 *start, struct hid_item item; __u8 *end; int ret; + const struct firmware *fw; + int succ; + char *file; + static int (*dispatch_type[])(struct hid_parser *parser, struct hid_item *item) = {