On 3/24/21 7:54 PM, Joel Stanley wrote:
The PCA955x driver since it was merged has added a "pca955x:" prefix to LED names. This meanas platform data (such as the device tree) cannot fully control the name. Here's what this produces using the example in the device tree bindings: # cat /sys/class/leds/ pca955x:green:power/ pca955x:pca9552:white/ pca955x:pca9552:yellow/ pca955x:red:power/ Some systems want the ability to configure the full string. To do this, introduce a build time option that adds the prefix that defaults to enabled in order to preserve existing behaviour.
Reviewed-by: Eddie James <eajames@xxxxxxxxxxxxx>
Signed-off-by: Joel Stanley <joel@xxxxxxxxx> --- drivers/leds/Kconfig | 11 +++++++++++ drivers/leds/leds-pca955x.c | 8 +++++++- 2 files changed, 18 insertions(+), 1 deletion(-)