]> 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)
commit4191aa95d86e3e89a0fc358f59e482edec6881d7
tree211c339c861923ea835a3644eef88aa5f5633e50
parentdef5c80add384f602f9d640f373ef9ed8eb8f250
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