Re: [PATCH 5/5] leds: add /sys/class/leds//current-trigger

2019-09-08 Thread Greg Kroah-Hartman
On Sun, Sep 08, 2019 at 09:41:12PM +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//current-trigger which is almost > identical to

[PATCH 5/5] leds: add /sys/class/leds//current-trigger

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//current-trigger which is almost identical to /sys/class/leds//trigger. The only difference is that 'current-trigger' only shows the