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

Documentation: ACPI: move scan_handlers.txt to driver-api/acpi and convert to reST

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>

authored by

Changbin Du and committed by
Rafael J. Wysocki
97a63dd4 25710e23

+17 -10
+16 -10
Documentation/acpi/scan_handlers.txt Documentation/driver-api/acpi/scan_handlers.rst
··· 1 - ACPI Scan Handlers 1 + .. SPDX-License-Identifier: GPL-2.0 2 + .. include:: <isonum.txt> 2 3 3 - Copyright (C) 2012, Intel Corporation 4 - Author: Rafael J. Wysocki <rafael.j.wysocki@intel.com> 4 + ================== 5 + ACPI Scan Handlers 6 + ================== 7 + 8 + :Copyright: |copy| 2012, Intel Corporation 9 + 10 + :Author: Rafael J. Wysocki <rafael.j.wysocki@intel.com> 5 11 6 12 During system initialization and ACPI-based device hot-add, the ACPI namespace 7 13 is scanned in search of device objects that generally represent various pieces ··· 36 30 Those additional configuration tasks usually depend on the type of the hardware 37 31 component represented by the given device node which can be determined on the 38 32 basis of the device node's hardware ID (HID). They are performed by objects 39 - called ACPI scan handlers represented by the following structure: 33 + called ACPI scan handlers represented by the following structure:: 40 34 41 - struct acpi_scan_handler { 42 - const struct acpi_device_id *ids; 43 - struct list_head list_node; 44 - int (*attach)(struct acpi_device *dev, const struct acpi_device_id *id); 45 - void (*detach)(struct acpi_device *dev); 46 - }; 35 + struct acpi_scan_handler { 36 + const struct acpi_device_id *ids; 37 + struct list_head list_node; 38 + int (*attach)(struct acpi_device *dev, const struct acpi_device_id *id); 39 + void (*detach)(struct acpi_device *dev); 40 + }; 47 41 48 42 where ids is the list of IDs of device nodes the given handler is supposed to 49 43 take care of, list_node is the hook to the global list of ACPI scan handlers
+1
Documentation/driver-api/acpi/index.rst
··· 6 6 :maxdepth: 2 7 7 8 8 linuxized-acpica 9 + scan_handlers