Re: leds: pca955x: Allow full control over led name

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

 




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(-)




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux