Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+13
+13
Documentation/leds/leds-class.txt
··· 52 52 of the name don't apply, just leave that section blank. 53 53 54 54 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 + 55 68 Hardware accelerated blink of LEDs 56 69 ================================== 57 70