Skip to contentSkip to conversation

Documentation: ACPI: Fix non-D0 probe _DSC object example

PATCH Applied Sakari Ailus 2 participants 2 messages Nov 10, 2021 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Documentation: ACPI: Fix non-D0 probe _DSC object example

The original patch adding the example used _DSC Name when Method was intended. Fix this.

Also replace spaces used for indentation with tabs in the example.

Fixes ed66f12ba4b1 ("Documentation: ACPI: Document _DSC object usage for enum power state")
---
 Documentation/firmware-guide/acpi/non-d0-probe.rst | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
Documentation/firmware-guide/acpi/non-d0-probe.rst +3 -3
index 78781e1ab6a3d..7afd16701a02e 100644
@@ -62,7 +62,7 @@ objects not relevant from the example point of view have been omitted.
 .. code-block:: text
 
 	Device (CAM0)
-        {
+	{
 		Name (_HID, "SONY319A")
 		Name (_UID, Zero)
 		Name (_CRS, ResourceTemplate ()
@@ -71,8 +71,8 @@ objects not relevant from the example point of view have been omitted.
 				     AddressingMode7Bit, "\\_SB.PCI0.I2C0",
 				     0x00, ResourceConsumer)
 		})
-		Name (_DSC, 0, NotSerialized)
+		Method (_DSC, 0, NotSerialized)
 		{
 			Return (0x4)
-                }
+		}
 	}
Signature · 1 line
2.30.2
maintainer Applied
#1 lore raw
Quoted 28 lines · Sakari Ailus

The original patch adding the example used _DSC Name when Method was intended. Fix this.

Also replace spaces used for indentation with tabs in the example.

Fixes ed66f12ba4b1 ("Documentation: ACPI: Document _DSC object usage for enum power state")
---
 Documentation/firmware-guide/acpi/non-d0-probe.rst | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
Documentation/firmware-guide/acpi/non-d0-probe.rst +1 -1
index 78781e1ab6a3d..7afd16701a02e 100644
@@ -62,7 +62,7 @@ objects not relevant from the example point of view have been omitted.
 .. code-block:: text
 
        Device (CAM0)
-        {
+       {
                Name (_HID, "SONY319A")
                Name (_UID, Zero)
                Name (_CRS, ResourceTemplate ()
@@ -71,8 +71,8 @@ objects not relevant from the example point of view have been omitted.
                                     AddressingMode7Bit, "\\_SB.PCI0.I2C0",

Documentation/firmware-guide/acpi/non-d0-probe.rst objects not relevant from the example point of view have been omitted.

Quoted 10 lines
Documentation/firmware-guide/acpi/non-d0-probe.rst +2 -3
                                     0x00, ResourceConsumer)
                })
-               Name (_DSC, 0, NotSerialized)
+               Method (_DSC, 0, NotSerialized)
                {
                        Return (0x4)
-                }
+               }
        }
--

Applied as 5.16-rc material, thanks!