]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
platform/x86: thinkpad_acpi: Use brightness_set_blocking callback for LEDs
authorHans de Goede <hdegoede@redhat.com>
Thu, 9 Feb 2017 15:44:12 +0000 (16:44 +0100)
committerDarren Hart <dvhart@linux.intel.com>
Sat, 25 Feb 2017 07:48:51 +0000 (23:48 -0800)
commit86ec0c2c0b527dc1574e5e95436bec5499102a3d
tree639011a0bcc384d33e08587196ee0982a99fffa2
parent06da5325d02ed3e9be9fbc7d0d621a04efc96961
platform/x86: thinkpad_acpi: Use brightness_set_blocking callback for LEDs

Now a days the LED core can take care of executing brightness_set from
a workqueue if it needs to sleep, make use of this and remove a bunch
of DIY code for this.

Since this commit removes the workqueue usage for LEDs, the
led_sysfs_blink_set callback may now also sleep, this is fine.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Pavel Machek <pavel@ucw.cz>
drivers/platform/x86/thinkpad_acpi.c