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

Skip to content
Commit c8ff1c7c authored by Fenglin Wu's avatar Fenglin Wu
Browse files

leds: qti-tri-led: Cancel set_brightness_work before setting breath



Currently, the driver uses brightness_set_blocking() which is called
asynchronously in the set_brightness_work of LED class device. It can
cause issues when multiple set_brightness() requests coming along with
breath_store() requests and if any of the set_brightness() requests
are blocked.

To overcome this, cancel set_brightness_work of LED class device
to make sure all the previous set_brightness() requests have been
served or cancelled before setting breath.

Change-Id: Ib9a8527867ab1adf2b034642f5efda72df30aea0
Signed-off-by: default avatarFenglin Wu <fenglinw@codeaurora.org>
parent 6fa1fd50
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