Messages in this thread Patch in this message | | | Date | Mon, 27 Apr 2015 20:14:25 +0300 | From | Stas Sergeev <> | Subject | [PATCH 3/3] leds: update documentation about new delay units |
| |
This adds the description of /sys/class/leds/<device>/delay_unit. It allows you to specify the delay unit for the led trigger timer.
CC: Jonathan Corbet <corbet@lwn.net> CC: linux-doc@vger.kernel.org CC: linux-kernel@vger.kernel.org
Signed-off-by: Stas Sergeev <stsp@users.sourceforge.net> --- Documentation/leds/leds-class.txt | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/Documentation/leds/leds-class.txt b/Documentation/leds/leds-class.txt index 79699c2..0e5ecf5 100644 --- a/Documentation/leds/leds-class.txt +++ b/Documentation/leds/leds-class.txt @@ -23,6 +23,10 @@ parameters and work on a per LED basis. The timer trigger is an example. The timer trigger will periodically change the LED brightness between LED_OFF and the current brightness setting. The "on" and "off" time can be specified via /sys/class/leds/<device>/delay_{on,off} in milliseconds. +If you want to specify the delay in microseconds or nanoseconds, you can +write 'usec' or 'nsec' to /sys/class/leds/<device>/delay_unit. That +functionality is available only if you have high-resolution timers +configured (check CONFIG_HIGH_RES_TIMERS in your kernel config). You can change the brightness value of a LED independently of the timer trigger. However, if you set the brightness value to LED_OFF it will also disable the timer trigger. -- 1.7.9.5
| |