platform/x86: thinkpad_acpi: Stop setting led_classdev brightness directly
authorHans de Goede <[email protected]>
Thu, 9 Feb 2017 15:44:11 +0000 (16:44 +0100)
committerDarren Hart <[email protected]>
Sat, 25 Feb 2017 07:48:51 +0000 (23:48 -0800)
commit06da5325d02ed3e9be9fbc7d0d621a04efc96961
tree0084fa50385872a0510170481ead2c29534f5c87
parentb8c5099b0027f013dad115b8d00f36f12cb13bb4
platform/x86: thinkpad_acpi: Stop setting led_classdev brightness directly

There is no need to set the led_classdev's brightness value from
its set_brightness callback, this is taken care of by the led-core and
thinkpad_acpi really should not be mucking with it.

Note that kbdlight_set_level_and_update() is still used by the old
thinpad_acpi specific sysfs interface for the led, so we cannot
remove it.

Signed-off-by: Hans de Goede <[email protected]>
Acked-by: Henrique de Moraes Holschuh <[email protected]>
Signed-off-by: Andy Shevchenko <[email protected]>
Acked-by: Pavel Machek <[email protected]>
drivers/platform/x86/thinkpad_acpi.c