diff options
author | Hans de Goede <[email protected]> | 2021-04-04 10:04:24 +0200 |
---|---|---|
committer | Jiri Kosina <[email protected]> | 2021-04-07 12:48:19 +0200 |
commit | bbf62645255f120bc2e7488c237e3f04da42ec70 (patch) | |
tree | 05a9cc3431f538730a998e533af237c0e69be82e /scripts/gdb/linux/timerlist.py | |
parent | 69aea9d2843669387d100e353b5113d1adc9502f (diff) |
HID: lenovo: Use brightness_set_blocking callback for setting LEDs brightness
The lenovo_led_brightness_set function may sleep, so we should have the
the led_class_dev's brightness_set_blocking callback point to it, rather
then the regular brightness_set callback.
When toggled through sysfs this is not a problem, but the brightness_set
callback may be called from atomic context when using LED-triggers.
Fixes: bc04b37ea0ec ("HID: lenovo: Add ThinkPad 10 Ultrabook Keyboard support")
Reviewed-by: Marek BehĂșn <[email protected]>
Acked-by: Pavel Machek <[email protected]>
Signed-off-by: Hans de Goede <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/timerlist.py')
0 files changed, 0 insertions, 0 deletions