Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965004AbbD0ROb (ORCPT ); Mon, 27 Apr 2015 13:14:31 -0400 Received: from smtp29.i.mail.ru ([94.100.177.89]:49298 "EHLO smtp29.i.mail.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964869AbbD0RO3 (ORCPT ); Mon, 27 Apr 2015 13:14:29 -0400 Message-ID: <553E6E71.4080509@list.ru> Date: Mon, 27 Apr 2015 20:14:25 +0300 From: Stas Sergeev User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: linux-leds@vger.kernel.org CC: Linux kernel , Stas Sergeev , Jonathan Corbet , linux-doc@vger.kernel.org Subject: [PATCH 3/3] leds: update documentation about new delay units References: <553E6CF5.4030601@list.ru> In-Reply-To: <553E6CF5.4030601@list.ru> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Spam: Not detected X-Mras: Ok Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1592 Lines: 35 This adds the description of /sys/class/leds//delay_unit. It allows you to specify the delay unit for the led trigger timer. CC: Jonathan Corbet CC: linux-doc@vger.kernel.org CC: linux-kernel@vger.kernel.org Signed-off-by: Stas Sergeev --- 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//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//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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/