summaryrefslogtreecommitdiffstats
path: root/drivers/leds/leds-wm8350.c
diff options
context:
space:
mode:
authorMilo(Woogyom) Kim <milo.kim@ti.com>2013-02-05 19:09:32 +0900
committerBryan Wu <cooloney@gmail.com>2013-02-06 15:59:28 -0800
commita96bfa135ddc8045166fc6311ce4d21bfcb8d13d (patch)
tree405bc5264b0b09af0d77db11cdae2923279db188 /drivers/leds/leds-wm8350.c
parenta6e4679a09a0a2bcfa63074272fc9fb2a40f11ad (diff)
downloadblackbird-op-linux-a96bfa135ddc8045166fc6311ce4d21bfcb8d13d.tar.gz
blackbird-op-linux-a96bfa135ddc8045166fc6311ce4d21bfcb8d13d.zip
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 <milo.kim@ti.com> Signed-off-by: Bryan Wu <cooloney@gmail.com>
Diffstat (limited to 'drivers/leds/leds-wm8350.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud