]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
Documentation: ACPI: move scan_handlers.txt to driver-api/acpi and convert to reST
authorChangbin Du <changbin.du@gmail.com>
Wed, 24 Apr 2019 17:52:48 +0000 (01:52 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 25 Apr 2019 21:07:19 +0000 (23:07 +0200)
This converts the plain text documentation to reStructuredText format
and adds it to Sphinx TOC tree.

No essential content change.

Signed-off-by: Changbin Du <changbin.du@gmail.com>
Reviewed-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Documentation/driver-api/acpi/index.rst
Documentation/driver-api/acpi/scan_handlers.rst [moved from Documentation/acpi/scan_handlers.txt with 90% similarity]

index 12649947b19b22f758a6df8d62806fc15757792f..ace0008e54c2ff96c7ae6dc2a1e464c8f0996374 100644 (file)
@@ -6,3 +6,4 @@ ACPI Support
    :maxdepth: 2
 
    linuxized-acpica
+   scan_handlers
similarity index 90%
rename from Documentation/acpi/scan_handlers.txt
rename to Documentation/driver-api/acpi/scan_handlers.rst
index 3246ccf159925026e99451a581246f38eff8fff4..7a197b3a33fcb2476eb3d6d58a59717c4d6331cc 100644 (file)
@@ -1,7 +1,13 @@
+.. SPDX-License-Identifier: GPL-2.0
+.. include:: <isonum.txt>
+
+==================
 ACPI Scan Handlers
+==================
+
+:Copyright: |copy| 2012, Intel Corporation
 
-Copyright (C) 2012, Intel Corporation
-Author: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
+:Author: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
 
 During system initialization and ACPI-based device hot-add, the ACPI namespace
 is scanned in search of device objects that generally represent various pieces
@@ -30,14 +36,14 @@ to configure that link so that the kernel can use it.
 Those additional configuration tasks usually depend on the type of the hardware
 component represented by the given device node which can be determined on the
 basis of the device node's hardware ID (HID).  They are performed by objects
-called ACPI scan handlers represented by the following structure:
+called ACPI scan handlers represented by the following structure::
 
-struct acpi_scan_handler {
-       const struct acpi_device_id *ids;
-       struct list_head list_node;
-       int (*attach)(struct acpi_device *dev, const struct acpi_device_id *id);
-       void (*detach)(struct acpi_device *dev);
-};
+       struct acpi_scan_handler {
+               const struct acpi_device_id *ids;
+               struct list_head list_node;
+               int (*attach)(struct acpi_device *dev, const struct acpi_device_id *id);
+               void (*detach)(struct acpi_device *dev);
+       };
 
 where ids is the list of IDs of device nodes the given handler is supposed to
 take care of, list_node is the hook to the global list of ACPI scan handlers