• Henrik Rydberg's avatar
    HID: Add device group to modalias · 4d53b801
    Henrik Rydberg authored
    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: default avatarHenrik Rydberg <rydberg@euromail.se>
    Acked-by: default avatarBenjamin Tissoires <benjamin.tissoires@gmail.com>
    Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
    4d53b801
hid-core.c 80.3 KB