leds: Add support for setting brightness in a synchronous way
authorJacek Anaszewski <j.anaszewski@samsung.com>
Fri, 14 Nov 2014 10:50:18 +0000 (02:50 -0800)
committerBryan Wu <cooloney@gmail.com>
Fri, 14 Nov 2014 22:29:35 +0000 (14:29 -0800)
commit4d71a4a12b130ad033219e6f58c74a64059415eb
tree5b9560719835c5a204b92f4bb7e44aae6793281c
parentacd899e4f3066b6662f6047da5b795cc762093cb
leds: Add support for setting brightness in a synchronous way

There are use cases when setting a LED brightness has to
have immediate effect (e.g. setting a torch LED brightness).
This patch extends LED subsystem to support such operations.
The LED subsystem internal API __led_set_brightness is changed
to led_set_brightness_async and new led_set_brightness_sync API
is added.

Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
drivers/leds/led-class.c
drivers/leds/led-core.c
drivers/leds/leds.h
drivers/leds/trigger/ledtrig-backlight.c
drivers/leds/trigger/ledtrig-default-on.c
drivers/leds/trigger/ledtrig-gpio.c
drivers/leds/trigger/ledtrig-heartbeat.c
drivers/leds/trigger/ledtrig-oneshot.c
drivers/leds/trigger/ledtrig-transient.c
include/linux/leds.h