platform/x86: thinkpad_acpi: Add LED_RETAIN_AT_SHUTDOWN to led_class_devs
authorHans de Goede <hdegoede@redhat.com>
Tue, 23 Nov 2021 21:05:23 +0000 (22:05 +0100)
committerHans de Goede <hdegoede@redhat.com>
Thu, 2 Dec 2021 11:58:25 +0000 (12:58 +0100)
commite518704d634fe3205903da6cbe97debf34885812
treecb8eb57df4e62b93442206359cfe622a9be54118
parentf3dc3009c2edb1512e0fe6964f387045a36b2ff4
platform/x86: thinkpad_acpi: Add LED_RETAIN_AT_SHUTDOWN to led_class_devs

Add the LED_RETAIN_AT_SHUTDOWN flag to the registered led_class_devs so
that the LEDs do not get turned-off when reloading the driver and thus so
that they also stay under default EC control when reloading the driver,
unless explicitly overridden by the user.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20211123210524.266705-1-hdegoede@redhat.com
drivers/platform/x86/thinkpad_acpi.c