• Milo Kim's avatar
    leds: lp5521/5523: Fix multiple engine usage bug · 28c9266b
    Milo Kim authored
    
    
    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: default avatarMilo Kim <milo.kim@ti.com>
    Signed-off-by: default avatarBryan Wu <cooloney@gmail.com>
    28c9266b
leds-lp5523.c 20.3 KB