platform/x86: asus-wmi: Call led hw_changed API on kbd brightness change
authorChris Chiu <chiu@endlessm.com>
Wed, 20 Jun 2018 14:46:44 +0000 (22:46 +0800)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 2 Jul 2018 12:13:40 +0000 (15:13 +0300)
commitdbb3d78f61badeadc7448f9d88a070a76612860f
treefba2af61a20fff2d4639eea7a2a1114fc601923c
parent4cf2afd6ef0d5e43e92d46401e7c1d3a9fac915b
platform/x86: asus-wmi: Call led hw_changed API on kbd brightness change

Make asus-wmi notify on hotkey kbd brightness changes, listen for
brightness events and update the brightness directly in the driver.
Create new do_kbd_led_set function for in-driver update, and leave
kbd_led_set for original led_classdev call path.

Update the brightness by led_classdev_notify_brightness_hw_changed.
This will allow userspace to monitor (poll) for brightness changes
on the LED without reporting via input keymapping.

Signed-off-by: Chris Chiu <chiu@endlessm.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/asus-wmi.c