From: Jacek Anaszewski Date: Wed, 20 Aug 2014 13:41:55 +0000 (-0700) Subject: leds: Improve and export led_update_brightness X-Git-Tag: fixes-against-v3.18-rc2~23^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ef7de5304edf60d0b8674dd7cdacc104e15a93c;p=pandora-kernel.git 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 Acked-by: Kyungmin Park Cc: Richard Purdie Signed-off-by: Bryan Wu --- Reading git-diff-tree failed