]> git.baikalelectronics.ru Git - kernel.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)
commitd64ce72fdab33a2df7711ca280c76645fc52892b
tree639011a0bcc384d33e08587196ee0982a99fffa2
parenta0859d488ff0ee421a4d49faa9ac2c8476ee06c7
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