From: Henrik Rydberg Date: Mon, 23 Apr 2012 10:07:02 +0000 (+0200) Subject: HID: Add device group to modalias X-Git-Tag: v3.5-rc1~138^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d53b8012f1f01ddb3f24db2031b042bb4cbd0d0;p=pandora-kernel.git HID: Add device group to modalias HID devices are only partially presented to userland. Hotplugged devices emit events containing a modalias based on the basic bus, vendor and product entities. However, in practise a hid device can depend on details such as a single usb interface or a particular item in a report descriptor. This patch adds a device group to the hid device id, and broadcasts it using uevent and the device modalias. The module alias generation is modified to match. As a consequence, a device with a non-zero group will be processed by the corresponding group driver instead of by the generic hid driver. Signed-off-by: Henrik Rydberg Acked-by: Benjamin Tissoires Signed-off-by: Jiri Kosina --- Reading git-diff-tree failed