Skip to content

Commit 648da8f

Browse files
committed
Documentation: leds: Add description of brightness setting API
This patch adds description of the LED subsystem API for setting an LED brightness. Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com> Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
1 parent 13ae79b commit 648da8f

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

‎Documentation/leds/leds-class.txt‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,19 @@ above leaves scope for further attributes should they be needed. If sections
5252
of the name don't apply, just leave that section blank.
5353

5454

55+
Brightness setting API
56+
======================
57+
58+
LED subsystem core exposes following API for setting brightness:
59+
60+
- led_set_brightness : it is guaranteed not to sleep, passing LED_OFF stops
61+
blinking,
62+
- led_set_brightness_sync : for use cases when immediate effect is desired -
63+
it can block the caller for the time required for accessing
64+
device registers and can sleep, passing LED_OFF stops hardware
65+
blinking, returns -EBUSY if software blink fallback is enabled.
66+
67+
5568
Hardware accelerated blink of LEDs
5669
==================================
5770

0 commit comments

Comments
 (0)