Skip to content
Commit 62844288 authored by Dmitry Torokhov's avatar Dmitry Torokhov
Browse files

Input: cap11xx - switch to using set_brightness_blocking()



Updating LED state requires access to regmap and therefore we may sleep,
so we could not do that directly form set_brightness() method.
Historically we used private work to adjust the brightness, but with the
introduction of set_brightness_blocking() we no longer need it.

As a bonus, not having our own work item means we do not have
use-after-free issue as we neglected to cancel outstanding work on
driver unbind.

Reported-by: default avatarSven Van Asbroeck <thesven73@gmail.com>
Reviewed-by: default avatarSven Van Asbroeck <TheSven73@googlemail.com>
Acked-by: default avatarJacek Anaszewski <jacek.anaszewski@gmail.com>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent e8b22d0a
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