diff options
author | Jacek Anaszewski <j.anaszewski@samsung.com> | 2014-08-20 15:41:55 +0200 |
---|---|---|
committer | Bryan Wu <cooloney@gmail.com> | 2014-09-12 23:01:54 +0200 |
commit | 3ef7de5304edf60d0b8674dd7cdacc104e15a93c (patch) | |
tree | 2af483fbfc67853ce5c8b3772fadb93c872b0d35 /drivers/cpufreq/ppc_cbe_cpufreq.c | |
parent | leds: trigger: gpio: fix warning in gpio trigger for gpios whose accessor fun... (diff) | |
download | linux-3ef7de5304edf60d0b8674dd7cdacc104e15a93c.tar.xz linux-3ef7de5304edf60d0b8674dd7cdacc104e15a93c.zip |
leds: Improve and export led_update_brightness
led_update_brightness helper function used to be exploited only locally
in the led-class.c module, where its result was being passed to the
brightness_show sysfs callback. With the introduction of v4l2-flash
subdevice the same functionality becomes required for reading current
brightness from a LED device. This patch adds checking of return value
of the brightness_get callback and moves the led_update_brightness()
function to the LED subsystem public API.
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>
Diffstat (limited to 'drivers/cpufreq/ppc_cbe_cpufreq.c')
0 files changed, 0 insertions, 0 deletions