Re: [PATCH 4/5] leds: add /sys/class/triggers/ that contains trigger sub-directories

2019-09-08 Thread Greg Kroah-Hartman
On Sun, Sep 08, 2019 at 09:41:11PM +0900, Akinobu Mita wrote: > Reading /sys/class/leds//trigger returns all available LED triggers. > However, this violates the "one value per file" rule of sysfs. > > This provides /sys/class/leds/triggers directory that contains a number of > sub-directories,

[PATCH 4/5] leds: add /sys/class/triggers/ that contains trigger sub-directories

2019-09-08 Thread Akinobu Mita
Reading /sys/class/leds//trigger returns all available LED triggers. However, this violates the "one value per file" rule of sysfs. This provides /sys/class/leds/triggers directory that contains a number of sub-directories, each representing an LED trigger. The name of the sub-directory matches