Skip to content

Commit 2b2d424

Browse files
Sakari Ailusrafaeljw
authored andcommitted
Documentation: ACPI: DSD: Convert LED documentation to ReST
Convert the LED documentation in text format into ReST. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent d1abaeb commit 2b2d424

2 files changed

Lines changed: 17 additions & 4 deletions

File tree

Documentation/acpi/dsd/leds.txt renamed to Documentation/firmware-guide/acpi/dsd/leds.rst

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1+
.. SPDX-License-Identifier: GPL-2.0
2+
.. include:: <isonum.txt>
3+
4+
========================================
15
Describing and referring to LEDs in ACPI
6+
========================================
27

38
Individual LEDs are described by hierarchical data extension [6] nodes under the
49
device node, the LED driver chip. The "reg" property in the LED specific nodes
@@ -25,8 +30,12 @@ entry shall contain the string "led@" followed by the number of the LED,
2530
followed by the referred object name. That object shall be named "LED" followed
2631
by the number of the LED.
2732

28-
An ASL example of a camera sensor device and a LED driver device for two LEDs.
29-
Objects not relevant for LEDs or the references to them have been omitted.
33+
Example
34+
=======
35+
36+
An ASL example of a camera sensor device and a LED driver device for two LEDs is
37+
show below. Objects not relevant for LEDs or the references to them have been
38+
omitted. ::
3039

3140
Device (LED)
3241
{
@@ -71,12 +80,15 @@ Objects not relevant for LEDs or the references to them have been omitted.
7180
}
7281

7382
where
83+
::
7484

7585
LED LED driver device
7686
LED0 First LED
7787
LED1 Second LED
78-
SEN Camera sensor device (or another device the LED is
79-
related to)
88+
SEN Camera sensor device (or another device the LED is related to)
89+
90+
References
91+
==========
8092

8193
[1] Device tree. <URL:http://www.devicetree.org>, referenced 2019-02-21.
8294

‎Documentation/firmware-guide/acpi/index.rst‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ ACPI Support
1010
namespace
1111
dsd/graph
1212
dsd/data-node-references
13+
dsd/leds
1314
enumeration
1415
osi
1516
method-customizing

0 commit comments

Comments
 (0)