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

Commit 4219619c authored by ansharma's avatar ansharma
Browse files

drivers: leds-qpnp-flash: 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: 1034167
Change-Id: Ic15810b6a7fa1b2f658ce8415cd4767df29c9daa
Signed-off-by: default avataransharma <ansharma@codeaurora.org>
parent 403033bb
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