From: Milo(Woogyom) Kim Date: Tue, 5 Feb 2013 10:09:32 +0000 (+0900) Subject: leds-lp55xx: provide common LED current setting X-Git-Tag: v3.9-rc1~79^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a96bfa135ddc8045166fc6311ce4d21bfcb8d13d;p=pandora-kernel.git leds-lp55xx: provide common LED current setting LED current is configurable via the sysfs. Max current is a read-only attribute. These attributes code can be shared in lp55xx common driver. Device attributes: 'led_current' and 'max_current' move to lp55xx common driver Replaced functions: show_max_current() => lp55xx_show_max_current() show_current() => lp55xx_show_current() store_current() => lp55xx_store_current() LED setting function: set_led_current() Current registers are device specific, so configurable function is added in each driver. Signed-off-by: Milo(Woogyom) Kim Signed-off-by: Bryan Wu --- Reading git-diff-tree failed