]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
lm8323 pwm fixes
authorTimo Karjalainen <timo.o.karjalainen@nokia.com>
Thu, 2 Oct 2008 09:07:22 +0000 (12:07 +0300)
committerTony Lindgren <tony@atomide.com>
Fri, 17 Oct 2008 22:07:47 +0000 (15:07 -0700)
commit86511719c369c1cc98f82f24ad137da03e7ea58e
tree3166c524be266b62e9bb38deeeb103e2bf71644d
parent81b93788802bab813afbdd53848bdc5e98c48919
lm8323 pwm fixes

This patch fixes two problems in LM8323 PWM control. One is that
locking is needed when setting and reading pwm->desired_brightness
asynchronously. The other is that LM8323 may stop a PWM script only
after the current instruction has finished. If it is a long RAMP,
the chip would keep executing the old instruction and new
settings were effectively ignored.

Signed-off-by: Timo Karjalainen <timo.o.karjalainen@nokia.com>
Signed-off-by: Daniel Stone <daniel.stone@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/input/keyboard/lm8323.c