diff options
author | Hans de Goede <hdegoede@redhat.com> | 2023-05-10 18:22:34 +0200 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2023-05-25 12:16:33 +0100 |
commit | 82f80ef5f337e6c66392c58a968244b98542acd2 (patch) | |
tree | 80bc018a374bb1dcef4b6c78879ac48fcb3b60a6 /drivers/leds/Kconfig | |
parent | 22720a87d0a9667c003bcffd38d15228b3a40f8c (diff) | |
download | linux-82f80ef5f337e6c66392c58a968244b98542acd2.tar.gz linux-82f80ef5f337e6c66392c58a968244b98542acd2.tar.bz2 linux-82f80ef5f337e6c66392c58a968244b98542acd2.zip |
leds: Clear LED_INIT_DEFAULT_TRIGGER when clearing current trigger
Not all triggers use LED_INIT_DEFAULT_TRIGGER, which means that it
will not get cleared when the default trigger is a trigger which
does not use it such as "default-on".
If the default trigger then later gets replaced by a trigger which
does check LED_INIT_DEFAULT_TRIGGER, such as "timer" then that trigger
will behave as if it is the default trigger which it should not do.
To fix this clear the LED_INIT_DEFAULT_TRIGGER flag when clearing
the current trigger, so that it will not be set for any subsequently
set (non default) triggers.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
Tested-by: Yauhen Kharuzhy <jekhor@gmail.com>
Link: https://lore.kernel.org/r/20230510162234.291439-5-hdegoede@redhat.com
Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'drivers/leds/Kconfig')
0 files changed, 0 insertions, 0 deletions