Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

leds: lp55xx_common: Enable use without FW_LOADER_USER_HELPER

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>

authored by

Sicelo A. Mhlongo and committed by
Lee Jones
7afd5335 2a7ee990

+4 -4
+1 -1
Documentation/leds/leds-lp5521.rst
··· 22 22 LP5521 has the internal program memory for running various LED patterns. 23 23 There are two ways to run LED patterns. 24 24 25 - 1) Legacy interface - enginex_mode and enginex_load 25 + 1) sysfs interface - enginex_mode and enginex_load 26 26 Control interface for the engines: 27 27 28 28 x is 1 .. 3
+1 -1
Documentation/leds/leds-lp5523.rst
··· 35 35 LP5523 has the internal program memory for running various LED patterns. 36 36 There are two ways to run LED patterns. 37 37 38 - 1) Legacy interface - enginex_mode, enginex_load and enginex_leds 38 + 1) sysfs interface - enginex_mode, enginex_load and enginex_leds 39 39 40 40 Control interface for the engines: 41 41
+2 -2
drivers/leds/Kconfig
··· 443 443 depends on LEDS_CLASS_MULTICOLOR 444 444 depends on OF 445 445 depends on I2C 446 - select FW_LOADER 447 - select FW_LOADER_USER_HELPER 446 + imply FW_LOADER 447 + imply FW_LOADER_USER_HELPER 448 448 help 449 449 This option supports common operations for LP5521/5523/55231/5562/5569/ 450 450 8501 devices.