diff options
author | Kim, Milo <[email protected]> | 2012-12-17 16:00:43 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2012-12-17 17:15:16 -0800 |
commit | 8cc9764c9c7d01a6e2c3ddac8f0ac7716be01868 (patch) | |
tree | 29a1e895f720dcd8ee969df19ba089401e870f8b /lib/mpi/mpiutil.c | |
parent | 05a5d4d2640dfe934ec78ba577dd21baccb11aa6 (diff) |
drivers/video/backlight/lp855x_bl.c: use generic PWM functions
The LP855x family devices support the PWM input for the backlight control.
Period of the PWM is configurable in the platform side. Platform
specific functions are unnecessary anymore because generic PWM functions
are used inside the driver.
(PWM input mode)
To set the brightness, new lp855x_pwm_ctrl() is used.
If a PWM device is not allocated, devm_pwm_get() is called.
The PWM consumer name is from the chip name such as 'lp8550' and 'lp8556'.
To get the brightness value, no additional handling is required.
Just the value of 'props.brightness' is returned.
If the PWM driver is not ready while initializing the LP855x driver, it's
OK. The PWM device can be retrieved later, when the brightness value is
changed.
Documentation is updated with an example.
[[email protected]: coding-style simplification, per Thierry]
Signed-off-by: Milo(Woogyom) Kim <[email protected]>
Cc: Thierry Reding <[email protected]>
Cc: Richard Purdie <[email protected]>
Cc: Bryan Wu <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions