]> git.baikalelectronics.ru Git - kernel.git/commit
leds: lp5521/5523: Fix multiple engine usage bug
authorMilo Kim <milo.kim@ti.com>
Thu, 21 Nov 2013 06:13:34 +0000 (22:13 -0800)
committerBryan Wu <cooloney@gmail.com>
Tue, 28 Jan 2014 01:28:48 +0000 (17:28 -0800)
commit30b27e3fac5aae196bb6374268b53c2dd2f03646
tree211c339c861923ea835a3644eef88aa5f5633e50
parenteab705052cc86cd1a954bfa386463135444dd9cc
leds: lp5521/5523: Fix multiple engine usage bug

Whenever the engine is loaded by the user-application, the operation mode is
reset first. But it has a problem in case of multiple engine used because
previous engine settings are cleared.
The driver should update not whole 8bits but each engine bit by masking.

On the other hands, whole engines should be reset when the driver is unloaded
and on initializing the LP5523 driver.
So, new functions are used for this handling - lp5521/5523_stop_all_engines().

Cc: Pali Rohár <pali.rohar@gmail.com>
Signed-off-by: Milo Kim <milo.kim@ti.com>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
drivers/leds/leds-lp5521.c
drivers/leds/leds-lp5523.c