summaryrefslogtreecommitdiff
path: root/drivers/misc
diff options
context:
space:
mode:
authorMike Dunn <mikedunn@newsguy.com>2013-09-22 09:59:56 -0700
committerThierry Reding <thierry.reding@gmail.com>2013-10-16 09:20:09 +0200
commit8f43e18e2769b3b28383903d501b4da29e388aad (patch)
treedcddafc52c90afc98fa8037a0ad682e5e8b6d194 /drivers/misc
parent22ceeee16eb8f0d04de3ef43a5174fb30ec18af9 (diff)
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/misc')
0 files changed, 0 insertions, 0 deletions