]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
leds: lp55xx_common: Enable use without FW_LOADER_USER_HELPER
authorSicelo A. Mhlongo <absicsz@gmail.com>
Mon, 6 Oct 2025 10:37:53 +0000 (12:37 +0200)
committerLee Jones <lee@kernel.org>
Tue, 21 Oct 2025 09:46:30 +0000 (10:46 +0100)
Many distributions disable FW_LOADER_USER_HELPER, and this configuration
makes lp55xx LEDs completely unusable. Enable their use by only implying
the user helper, since the basic LEDs and the hardware patterns can be used
with only the sysfs interface.

Tested on Nokia N900 with LP5523.

Additionally do not refer to the sysfs interface as legacy anymore, since
it might be the only one available to users.

Signed-off-by: Sicelo A. Mhlongo <absicsz@gmail.com>
Signed-off-by: Lee Jones <lee@kernel.org>
Documentation/leds/leds-lp5521.rst
Documentation/leds/leds-lp5523.rst
drivers/leds/Kconfig

index 0432615b083d660a34db24fd8e077a2c2a02ab40..4c838c88820efcb5f164635d6bbc52ddaef408fa 100644 (file)
@@ -22,7 +22,7 @@ More details of the instructions can be found from the public data sheet.
 LP5521 has the internal program memory for running various LED patterns.
 There are two ways to run LED patterns.
 
-1) Legacy interface - enginex_mode and enginex_load
+1) sysfs interface - enginex_mode and enginex_load
    Control interface for the engines:
 
    x is 1 .. 3
index 7d7362a1dd5759810a703ebd780e5c56a8d9d761..f5a87b07514ac00f4ffde804476600e5391f2fc6 100644 (file)
@@ -35,7 +35,7 @@ If both fields are NULL, 'lp5523' is used by default.
 LP5523 has the internal program memory for running various LED patterns.
 There are two ways to run LED patterns.
 
-1) Legacy interface - enginex_mode, enginex_load and enginex_leds
+1) sysfs interface - enginex_mode, enginex_load and enginex_leds
 
   Control interface for the engines:
 
index 06e6291be11b2f86aac80518cb62904b212a5d9c..eed609378ec177abc9dad3fa9454c06b3fa82186 100644 (file)
@@ -443,8 +443,8 @@ config LEDS_LP55XX_COMMON
        depends on LEDS_CLASS_MULTICOLOR
        depends on OF
        depends on I2C
-       select FW_LOADER
-       select FW_LOADER_USER_HELPER
+       imply FW_LOADER
+       imply FW_LOADER_USER_HELPER
        help
          This option supports common operations for LP5521/5523/55231/5562/5569/
          8501 devices.