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)
commitc685e20df5cfa11cee0954be70456872c4f670f0
tree5e94de266bd4551bc7da4617bb89ae4cdc3d786b
parent86ec0c2c0b527dc1574e5e95436bec5499102a3d
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