Skip to contentSkip to conversation

ACPI: Fix acpi_dev_state_d0() documentation

PATCH Applied Sakari Ailus 2 participants 2 messages Aug 18, 2022 – Aug 23, 2022 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ACPI: Fix acpi_dev_state_d0() documentation

The documentation for acpi_dev_state_d0() referred to Documentation/firmware-guide/acpi/low-power-probe.rst that does not exist, the right file name is Documentation/firmware-guide/acpi/non-d0-probe.rst. Fix this.

---
 drivers/acpi/device_pm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/acpi/device_pm.c +1 -1
index 130b5f4a50a3d..fc5ffdb544cae 100644
@@ -1438,7 +1438,7 @@ EXPORT_SYMBOL_GPL(acpi_storage_d3);
  * not valid to ask for the ACPI power state of the device in that time frame.
  *
  * This function is intended to be used in a driver's probe or remove
- * function. See Documentation/firmware-guide/acpi/low-power-probe.rst for
+ * function. See Documentation/firmware-guide/acpi/non-d0-probe.rst for
  * more information.
  */
 bool acpi_dev_state_d0(struct device *dev)
Signature · 1 line
2.30.2
maintainer Applied
#1 lore raw
Quoted 17 lines · Sakari Ailus

The documentation for acpi_dev_state_d0() referred to Documentation/firmware-guide/acpi/low-power-probe.rst that does not exist, the right file name is Documentation/firmware-guide/acpi/non-d0-probe.rst. Fix this.

---
 drivers/acpi/device_pm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/acpi/device_pm.c +0 -0
index 130b5f4a50a3d..fc5ffdb544cae 100644

drivers/acpi/device_pm.c EXPORT_SYMBOL_GPL(acpi_storage_d3);

Quoted 9 lines
drivers/acpi/device_pm.c +1 -2
@@ -1438,7 +1438,7 @@ EXPORT_SYMBOL_GPL(acpi_storage_d3);
  * not valid to ask for the ACPI power state of the device in that time frame.
  *
  * This function is intended to be used in a driver's probe or remove
- * function. See Documentation/firmware-guide/acpi/low-power-probe.rst for
+ * function. See Documentation/firmware-guide/acpi/non-d0-probe.rst for
  * more information.
  */
 bool acpi_dev_state_d0(struct device *dev)
--

Applied as 6.0-rc material, thanks!