]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: thinkpad_acpi: Call led_classdev_notify_brightness_hw_changed on kbd...
authorHans de Goede <hdegoede@redhat.com>
Thu, 9 Feb 2017 15:44:13 +0000 (16:44 +0100)
committerDarren Hart <dvhart@linux.intel.com>
Sat, 25 Feb 2017 07:48:52 +0000 (23:48 -0800)
commit64028aa2a46b71c5029763174f7c4230f64acf09
tree5e94de266bd4551bc7da4617bb89ae4cdc3d786b
parent11e91f1016787a9cdfc6562f42768bb92ce645dd
platform/x86: thinkpad_acpi: Call led_classdev_notify_brightness_hw_changed on kbd brightness change

Make thinkpad_acpi call led_classdev_notify_brightness_hw_changed on the
kbd_led led_classdev registered by thinkpad_acpi when the kbd backlight
brightness is changed through the hotkey.

This will allow userspace to monitor (poll) for brightness changes on
these LEDs caused by the hotkey.

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