mirror of
https://github.com/torvalds/linux.git
synced 2026-11-26 16:33:17 +00:00
All LED-setting functions in fujitsu-laptop are currently assigned to the brightness_set callback, which is incorrect because they can sleep (due to their use of call_fext_func(), which in turn issues ACPI calls) and the documentation (in include/linux/leds.h) clearly states they must not. Assign them to brightness_set_blocking instead and change them to match the expected function prototype. This change makes it possible to use Fujitsu-specific LEDs with "heavy" triggers, like disk-activity or phy0rx. Fixes:3a40708609("fujitsu-laptop: Add BL power, LED control and radio state information") Fixes:4f62568c1f("fujitsu-laptop: Support radio LED") Fixes:d6b88f64b0("fujitsu-laptop: Add support for eco LED") Signed-off-by: Michał Kępień <[email protected]> Acked-by: Jonathan Woithe <[email protected]> Signed-off-by: Andy Shevchenko <[email protected]>