aboutsummaryrefslogtreecommitdiffstats
path: root/lib/string.c
diff options
context:
space:
mode:
authorKim, Milo <[email protected]>2012-03-23 22:02:12 +0000
committerLinus Torvalds <[email protected]>2012-03-23 23:58:35 +0000
commitbb982009d3850759d3f4a4c853f9c456c48b6c2d (patch)
tree9bd6ed1979f86e5531f83240720cf0119b33a4e0 /lib/string.c
parentleds-lm3530: replace i2c_client with led_classdev (diff)
downloadkernel-bb982009d3850759d3f4a4c853f9c456c48b6c2d.tar.gz
kernel-bb982009d3850759d3f4a4c853f9c456c48b6c2d.zip
leds-lm3530: support pwm input mode
* add 'struct lm3530_pwm_data' in the platform data The pwm data is the platform specific functions which generate the pwm. The pwm data is only valid when brightness is pwm input mode. Functions should be implemented by the pwm driver. pwm_set_intensity() : set duty of pwm. pwm_get_intensity() : get current the brightness. * brightness control by pwm If the control mode is pwm, then brightness is changed by the duty of pwm=. So pwm platform function should be called in lm3530_brightness_set(). * do not update brightness register when pwm input mode In pwm input mode, brightness register is not used. If any value is updated in this register, then the led will be off. * when input mode is changed, set duty of pwm to 0 if unnecessary. Signed-off-by: Milo(Woogyom) Kim <[email protected]> Cc: Linus Walleij <[email protected]> Cc: Richard Purdie <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/string.c')
0 files changed, 0 insertions, 0 deletions