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

DT: leds: Add uniqueness requirement for 'label' property.

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: Richard Purdie <rpurdie@rpsys.net>
Cc: devicetree@vger.kernel.org
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Bryan Wu <cooloney@gmail.com>

authored by

Jacek Anaszewski and committed by
Bryan Wu
116b8e16 5e23a35c

+4 -2
+4 -2
Documentation/devicetree/bindings/leds/common.txt
··· 14 14 - led-sources : List of device current outputs the LED is connected to. The 15 15 outputs are identified by the numbers that must be defined 16 16 in the LED device binding documentation. 17 - - label : The label for this LED. If omitted, the label is 18 - taken from the node name (excluding the unit address). 17 + - label : The label for this LED. If omitted, the label is taken from the node 18 + name (excluding the unit address). It has to uniquely identify 19 + a device, i.e. no other LED class device can be assigned the same 20 + label. 19 21 20 22 - linux,default-trigger : This parameter, if present, is a 21 23 string defining the trigger assigned to the LED. Current triggers are: