From patchwork Mon Jul 12 17:28:27 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Mack X-Patchwork-Id: 111475 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 o6CHTR6v020530 for ; Mon, 12 Jul 2010 17:29:27 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756374Ab0GLR3I (ORCPT ); Mon, 12 Jul 2010 13:29:08 -0400 Received: from buzzloop.caiaq.de ([212.112.241.133]:34821 "EHLO buzzloop.caiaq.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756218Ab0GLR2z (ORCPT ); Mon, 12 Jul 2010 13:28:55 -0400 Received: from localhost (localhost [127.0.0.1]) by buzzloop.caiaq.de (Postfix) with ESMTP id 860A67F4069; Mon, 12 Jul 2010 19:28:52 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at buzzloop.caiaq.de Received: from buzzloop.caiaq.de ([127.0.0.1]) by localhost (buzzloop.caiaq.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id prDyTKAXvWBv; Mon, 12 Jul 2010 19:28:36 +0200 (CEST) Received: from jup.xaos.intra (port-92-206-67-170.dynamic.qsc.de [92.206.67.170]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by buzzloop.caiaq.de (Postfix) with ESMTPSA id F32107F4067; Mon, 12 Jul 2010 19:28:35 +0200 (CEST) From: Daniel Mack To: linux-input@vger.kernel.org Cc: linux-usb@vger.kernel.org, Daniel Mack , Jiri Kosina , Dmitry Torokhov Subject: [PATCH 2/3] HID: add HID_QUIRK_HIDINPUT_FORCE Date: Mon, 12 Jul 2010 19:28:27 +0200 Message-Id: <1278955708-9428-2-git-send-email-daniel@caiaq.de> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1278955708-9428-1-git-send-email-daniel@caiaq.de> References: <1278955708-9428-1-git-send-email-daniel@caiaq.de> 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]); Mon, 12 Jul 2010 17:29:28 +0000 (UTC) diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c index aa0f7dc..5751db4 100644 --- a/drivers/hid/hid-core.c +++ b/drivers/hid/hid-core.c @@ -1157,6 +1157,8 @@ int hid_connect(struct hid_device *hdev, unsigned int connect_mask) if (hdev->quirks & HID_QUIRK_HIDDEV_FORCE) connect_mask |= (HID_CONNECT_HIDDEV_FORCE | HID_CONNECT_HIDDEV); + if (hdev->quirks & HID_QUIRK_HIDINPUT_FORCE) + connect_mask |= HID_CONNECT_HIDINPUT_FORCE; if (hdev->bus != BUS_USB) connect_mask &= ~HID_CONNECT_HIDDEV; if (hid_hiddev(hdev)) diff --git a/include/linux/hid.h b/include/linux/hid.h index 895001f..42a0f1d 100644 --- a/include/linux/hid.h +++ b/include/linux/hid.h @@ -311,6 +311,7 @@ struct hid_item { #define HID_QUIRK_HIDDEV_FORCE 0x00000010 #define HID_QUIRK_BADPAD 0x00000020 #define HID_QUIRK_MULTI_INPUT 0x00000040 +#define HID_QUIRK_HIDINPUT_FORCE 0x00000080 #define HID_QUIRK_SKIP_OUTPUT_REPORTS 0x00010000 #define HID_QUIRK_FULLSPEED_INTERVAL 0x10000000 #define HID_QUIRK_NO_INIT_REPORTS 0x20000000