Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1204932 > unrolled thread
| Started by | Jacek Anaszewski <j.anaszewski@samsung.com> |
|---|---|
| First post | 2015-08-11 11:40 +0200 |
| Last post | 2015-08-11 11:40 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH/RFC v5 11/57] Documentation: leds: Add description of brightness_set* ops Jacek Anaszewski <j.anaszewski@samsung.com> - 2015-08-11 11:40 +0200
| From | Jacek Anaszewski <j.anaszewski@samsung.com> |
|---|---|
| Date | 2015-08-11 11:40 +0200 |
| Subject | [PATCH/RFC v5 11/57] Documentation: leds: Add description of brightness_set* ops |
| Message-ID | <pWeck-17Z-69@gated-at.bofh.it> |
This patch adds description of brightness_set and a recently introduced brightness_set_nonblocking op. Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com> Cc: Bryan Wu <cooloney@gmail.com> Cc: Andrew Lunn <andrew@lunn.ch> Cc: Sakari Ailus <sakari.ailus@linux.intel.com> Cc: Pavel Machek <pavel@ucw.cz> Cc: Stas Sergeev <stsp@users.sourceforge.net> --- Documentation/leds/leds-class.txt | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Documentation/leds/leds-class.txt b/Documentation/leds/leds-class.txt index 62261c0..fde8fef 100644 --- a/Documentation/leds/leds-class.txt +++ b/Documentation/leds/leds-class.txt @@ -52,6 +52,26 @@ above leaves scope for further attributes should they be needed. If sections of the name don't apply, just leave that section blank. +Brightness setting callbacks +============================ + +LED subsystem core exposes two function pointers for setting brightness: + + - brightness_set : Intended for drivers that may set brightness in + a blocking way. For a long time this was the only + op for setting brightness and it was drivers' + responsibility to assure that it will not block the + caller. With the new approach drivers are required to set + LED_BRIGHTNESS_BLOCKING flag, when using this op, to make + LED core aware that it should call it from a work queue + task, when brightness is set with led_set_brightness API. + In case synchronous operation is needed it should be + explicitly requested with led_set_brightness_sync API. + + - brightness_set_nonblocking : Intended for drivers that set brightness in + a non-blocking way. + + Hardware accelerated blink of LEDs ================================== -- 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/
Back to top | Article view | linux.kernel
csiph-web