]> Git Repo - linux.git/commit - drivers/leds/led-core.c
leds: Improve and export led_update_brightness
authorJacek Anaszewski <[email protected]>
Wed, 20 Aug 2014 13:41:55 +0000 (06:41 -0700)
committerBryan Wu <[email protected]>
Fri, 12 Sep 2014 21:01:54 +0000 (14:01 -0700)
commit3ef7de5304edf60d0b8674dd7cdacc104e15a93c
tree2af483fbfc67853ce5c8b3772fadb93c872b0d35
parent914ae25a62e77ebbfa0ce7cbc60edd01cc4d1d31
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 <[email protected]>
Acked-by: Kyungmin Park <[email protected]>
Cc: Richard Purdie <[email protected]>
Signed-off-by: Bryan Wu <[email protected]>
drivers/leds/led-class.c
drivers/leds/led-core.c
include/linux/leds.h
This page took 0.055453 seconds and 4 git commands to generate.