]> git.baikalelectronics.ru Git - kernel.git/commit
HID: Add device group to modalias
authorHenrik Rydberg <rydberg@euromail.se>
Mon, 23 Apr 2012 10:07:02 +0000 (12:07 +0200)
committerJiri Kosina <jkosina@suse.cz>
Tue, 1 May 2012 10:54:54 +0000 (12:54 +0200)
commitc561428b745bd292cb7da82f02058432210f73ae
tree4536bb9fefb51c212f28dee84e810ab0d6854a6e
parent921373e9fd3dfcc043d0454128a0578409bc4e77
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 <rydberg@euromail.se>
Acked-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-core.c
include/linux/hid.h
include/linux/mod_devicetable.h
scripts/mod/file2alias.c