Skip to content
Commit 645beff8 authored by Anuj Pathak's avatar Anuj Pathak Committed by Carles Cufí
Browse files

drivers: led: lp5562: reuse engine already linked



Right now "lp5562_led_blink" unconditionally find and assign a engine
that is not executing at the moment. This is an issue, if 3 "led" are
already using an engine. That is a call to "lp5562_led_blink" could
terminate with error, even if the "led" is already using an engine.
This commit fixes this issue by adding a check to see if engine is
linked and reuse it, otherwise assign a free engine.

Signed-off-by: default avatarAnuj Pathak <anuj@croxel.com>
parent 7f3c08b2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment