Thread (3 messages) 3 messages, 3 authors, 2021-04-25

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

From: Eddie James <eajames@linux.ibm.com>
Date: 2021-03-26 21:42:00

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@linux.ibm.com>

Signed-off-by: Joel Stanley <joel@jms.id.au>
---
  drivers/leds/Kconfig        | 11 +++++++++++
  drivers/leds/leds-pca955x.c |  8 +++++++-
  2 files changed, 18 insertions(+), 1 deletion(-)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help