From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752232Ab3BRLIk (ORCPT ); Mon, 18 Feb 2013 06:08:40 -0500 Received: from mga02.intel.com ([134.134.136.20]:16738 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751408Ab3BRLIj (ORCPT ); Mon, 18 Feb 2013 06:08:39 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.84,686,1355126400"; d="scan'208";a="264041324" Date: Mon, 18 Feb 2013 13:12:17 +0200 From: Mika Westerberg To: Alexander Holler Cc: linux-kernel@vger.kernel.org, Jiri Kosina , Benjamin Tissoires , linux-input@vger.kernel.org, srinivas.pandruvada@intel.com Subject: Re: [PATCH 3/3] HID: sensor-hub: don't limit the driver only to USB bus Message-ID: <20130218111217.GL20771@intel.com> References: <1360578679-7029-1-git-send-email-mika.westerberg@linux.intel.com> <1360578679-7029-3-git-send-email-mika.westerberg@linux.intel.com> <51220A68.9030608@ahsoftware.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <51220A68.9030608@ahsoftware.de> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 18, 2013 at 12:03:04PM +0100, Alexander Holler wrote: > Am 11.02.2013 11:31, schrieb Mika Westerberg: > >We now have two transport mediums: USB and I2C, where sensor hubs can > >exists. So instead of constraining the driver to only these two we let it > >to match any HID bus as long as the group is HID_GROUP_SENSOR_HUB. > > > >Signed-off-by: Mika Westerberg > >--- > > drivers/hid/hid-sensor-hub.c | 3 ++- > > 1 file changed, 2 insertions(+), 1 deletion(-) > > > >diff --git a/drivers/hid/hid-sensor-hub.c b/drivers/hid/hid-sensor-hub.c > >index 2643bce9..c01f10d 100644 > >--- a/drivers/hid/hid-sensor-hub.c > >+++ b/drivers/hid/hid-sensor-hub.c > >@@ -603,7 +603,8 @@ static void sensor_hub_remove(struct hid_device *hdev) > > } > > > > static const struct hid_device_id sensor_hub_devices[] = { > >- { HID_DEVICE(BUS_USB, HID_GROUP_SENSOR_HUB, HID_ANY_ID, HID_ANY_ID) }, > >+ { HID_DEVICE(HID_BUS_ANY, HID_GROUP_SENSOR_HUB, HID_ANY_ID, > >+ HID_ANY_ID) }, > > { } > > }; > > MODULE_DEVICE_TABLE(hid, sensor_hub_devices); > > > > Hmm, what happens with Bluetooth sensor-hubs? Is the driver now able > to handle them too? It should, yes.