Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 187ece99 authored by ansharma's avatar ansharma
Browse files

drivers: leds-qpnp-wled: Synchronize brightness_set and worker thread



Synchronize between the brightness_set and worker thread by using
led_access mutex lock from LED class device. This makes sure that
the brightness level does not get changed when the register write
is in progress and the last set brightness level always
gets applied.

CRs-Fixed: 1044717
Change-Id: Ia0d213e36814f867ec7b2a14b432f33a62f1e6e1
Signed-off-by: default avataransharma <ansharma@codeaurora.org>
parent ee20f199
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment