2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-22 12:14:01 +08:00
linux-next/drivers/leds/trigger
Jacek Anaszewski 81fe8e5b73 leds: core: Add led_set_brightness_nosleep{nopm} functions
This patch adds led_set_brightness_nosleep() and led_set_brightness_nopm()
functions, that guarantee setting LED brightness in a non-blocking way.
The latter is used from pm_ops context and doesn't modify the brightness
cached in the struct led_classdev. Its execution always ends up with
a call to brightness setting op - either directly or through
a set_brightness_work, regardless of LED_SUSPENDED flag state.

The patch also replaces led_set_brightness_async() with
led_set_brightness_nosleep() in all places where the most vital was setting
brightness in a non sleeping way but not necessarily asynchronously, which
is not needed for non-blocking drivers.

Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
2016-01-04 09:57:30 +01:00
..
Kconfig leds: Allow compile test of GPIO consumers if !GPIOLIB 2015-08-28 14:05:57 +02:00
ledtrig-backlight.c leds: core: Add led_set_brightness_nosleep{nopm} functions 2016-01-04 09:57:30 +01:00
ledtrig-camera.c
ledtrig-cpu.c drivers/leds: Replace __get_cpu_var use through this_cpu_ptr 2014-05-08 14:28:08 +08:00
ledtrig-default-on.c leds: core: Add led_set_brightness_nosleep{nopm} functions 2016-01-04 09:57:30 +01:00
ledtrig-gpio.c leds: core: Add led_set_brightness_nosleep{nopm} functions 2016-01-04 09:57:30 +01:00
ledtrig-heartbeat.c leds: core: Add led_set_brightness_nosleep{nopm} functions 2016-01-04 09:57:30 +01:00
ledtrig-ide-disk.c
ledtrig-oneshot.c leds: core: Add led_set_brightness_nosleep{nopm} functions 2016-01-04 09:57:30 +01:00
ledtrig-timer.c
ledtrig-transient.c leds: core: Add led_set_brightness_nosleep{nopm} functions 2016-01-04 09:57:30 +01:00
Makefile