All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] DT: leds: Add uniqueness requirement for 'label' property.
@ 2015-03-26 14:03 Jacek Anaszewski
  2015-03-26 14:03 ` [PATCH] leds: start numerating duplicated devices from 2 Jacek Anaszewski
  2015-03-26 20:59 ` [PATCH] DT: leds: Add uniqueness requirement for 'label' property Sakari Ailus
  0 siblings, 2 replies; 7+ messages in thread
From: Jacek Anaszewski @ 2015-03-26 14:03 UTC (permalink / raw)
  To: linux-leds
  Cc: Jacek Anaszewski, Bryan Wu, Richard Purdie, Sakari Ailus, devicetree

Label is used for naming LED class devices. Since ePAPR
doesn't require uniqueness for label properties, it has to be
explicitly required in the LEDs common bindings documentation.

Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Bryan Wu <cooloney@gmail.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Cc: Sakari Ailus <sakari.ailus@iki.fi>
Cc: devicetree@vger.kernel.org
---
 Documentation/devicetree/bindings/leds/common.txt |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/leds/common.txt b/Documentation/devicetree/bindings/leds/common.txt
index 34811c5..747c538 100644
--- a/Documentation/devicetree/bindings/leds/common.txt
+++ b/Documentation/devicetree/bindings/leds/common.txt
@@ -14,8 +14,10 @@ Optional properties for child nodes:
 - led-sources : List of device current outputs the LED is connected to. The
 		outputs are identified by the numbers that must be defined
 		in the LED device binding documentation.
-- label : The label for this LED.  If omitted, the label is
-  taken from the node name (excluding the unit address).
+- label : The label for this LED. If omitted, the label is taken from the node
+	  name (excluding the unit address). It has to uniquely identify
+	  a device, i.e. no other LED class device can be assigned the same
+	  label.
 
 - linux,default-trigger :  This parameter, if present, is a
     string defining the trigger assigned to the LED.  Current triggers are:
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-03-27  0:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-26 14:03 [PATCH] DT: leds: Add uniqueness requirement for 'label' property Jacek Anaszewski
2015-03-26 14:03 ` [PATCH] leds: start numerating duplicated devices from 2 Jacek Anaszewski
2015-03-26 14:22   ` Ricardo Ribalda Delgado
2015-03-26 14:39     ` Jacek Anaszewski
2015-03-26 14:43       ` Ricardo Ribalda Delgado
2015-03-26 20:59 ` [PATCH] DT: leds: Add uniqueness requirement for 'label' property Sakari Ailus
2015-03-27  0:58   ` Bryan Wu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.