diff options
author | Mike Dunn <mikedunn@newsguy.com> | 2013-09-22 18:59:56 +0200 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2013-10-16 09:20:09 +0200 |
commit | 8f43e18e2769b3b28383903d501b4da29e388aad (patch) | |
tree | dcddafc52c90afc98fa8037a0ad682e5e8b6d194 /drivers/pwm | |
parent | pwm-backlight: Add power supply support (diff) | |
download | linux-8f43e18e2769b3b28383903d501b4da29e388aad.tar.xz linux-8f43e18e2769b3b28383903d501b4da29e388aad.zip |
pwm-backlight: Allow for non-increasing brightness levels
Currently the driver assumes that the values specified in the
brightness-levels device tree property increase as they are parsed from
left to right. But boards that invert the signal between the PWM output
and the backlight will need to specify decreasing brightness-levels.
This patch removes the assumption that the last element of the array is
the maximum value, and instead searches the array for the maximum value
and uses that in the duty cycle calculation.
Signed-off-by: Mike Dunn <mikedunn@newsguy.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/pwm')
0 files changed, 0 insertions, 0 deletions