diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2019-02-06 00:52:26 +0300 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2019-02-09 19:56:56 +0300 |
commit | 628442880af8c201d307a45f3862a7a17df8a189 (patch) | |
tree | 6ca375821759ee24104dd05cb3c44d73999e6b53 /fs/fs_struct.c | |
parent | e8b22d0a329f0fb5c7ef95406872d268f01ee3b1 (diff) | |
download | linux-628442880af8c201d307a45f3862a7a17df8a189.tar.xz |
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: Sven Van Asbroeck <thesven73@gmail.com>
Reviewed-by: Sven Van Asbroeck <TheSven73@googlemail.com>
Acked-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'fs/fs_struct.c')
0 files changed, 0 insertions, 0 deletions