Re: [PATCH 1/2] platform/x86: thinkpad_acpi: Add LED_RETAIN_AT_SHUTDOWN to led_class_devs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All,

On 11/23/21 22:05, Hans de Goede wrote:
> 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@xxxxxxxxxx>

I've added this series to my review-hans branch now, with the LED
name changed to lid_logo_dot as discussed.

Regards,

Hans


> ---
>  drivers/platform/x86/thinkpad_acpi.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c
> index a4ef57ddcc90..49fdf16b2db9 100644
> --- a/drivers/platform/x86/thinkpad_acpi.c
> +++ b/drivers/platform/x86/thinkpad_acpi.c
> @@ -5827,6 +5827,7 @@ static int __init tpacpi_init_led(unsigned int led)
>  		tpacpi_leds[led].led_classdev.brightness_get = &led_sysfs_get;
>  
>  	tpacpi_leds[led].led_classdev.name = tpacpi_led_names[led];
> +	tpacpi_leds[led].led_classdev.flags = LED_RETAIN_AT_SHUTDOWN;
>  	tpacpi_leds[led].led = led;
>  
>  	return led_classdev_register(&tpacpi_pdev->dev, &tpacpi_leds[led].led_classdev);
> 




[Index of Archives]     [Linux Kernel Development]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux