• G
    pwm: Set class for exported channels in sysfs · 7e5d1fd7
    Gottfried Haider 提交于
    Notifications for devices without bus or class set get dropped by
    dev_uevent_filter(). Adding the class to the exported child matches
    what the GPIO subsystem is doing.
    
    With this change exporting a channel triggers a udev event, which
    gives userspace a chance to fixup permissions and makes it possible
    for non-root users to make use of the PWM subsystem.
    Signed-off-by: NGottfried Haider <gottfried.haider@gmail.com>
    CC: Thierry Reding <thierry.reding@gmail.com>
    CC: H Hartley Sweeten <hsweeten@visionengravers.com>
    CC: linux-pwm@vger.kernel.org
    CC: linux-arm-kernel@lists.infradead.org
    CC: linux-rpi-kernel@lists.infradead.org
    Signed-off-by: NThierry Reding <thierry.reding@gmail.com>
    7e5d1fd7
sysfs.c 9.4 KB