Skip to content

Commit

Permalink
PM / core / docs: Convert sleep states API document to reST
Browse files Browse the repository at this point in the history
Move the document describing the system sleep state transitions API
for devices to Documentation/driver-api/pm/, convert it to reST and
update it to use current terminology.  Also remove the remaining
reference to the old version of it from pm.h.

The new document still contains references to some documents in the
.txt format that will be converted later.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
  • Loading branch information
Rafael J. Wysocki authored and Jonathan Corbet committed Feb 6, 2017
1 parent 4d29b2e commit 2728b2d
Show file tree
Hide file tree
Showing 6 changed files with 387 additions and 343 deletions.
1 change: 1 addition & 0 deletions Documentation/driver-api/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ available subsections can be seen below.

basics
infrastructure
pm/index
device-io
dma-buf
device_link
Expand Down
10 changes: 10 additions & 0 deletions Documentation/driver-api/pm/conf.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# -*- coding: utf-8; mode: python -*-

project = "Device Power Management"

tags.add("subproject")

latex_documents = [
('index', 'pm.tex', project,
'The kernel development community', 'manual'),
]

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions Documentation/driver-api/pm/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
=======================
Device Power Management
=======================

.. toctree::

devices
types

.. only:: subproject and html

Indices
=======

* :ref:`genindex`
5 changes: 5 additions & 0 deletions Documentation/driver-api/pm/types.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
==================================
Device Power Management Data Types
==================================

.. kernel-doc:: include/linux/pm.h
3 changes: 0 additions & 3 deletions include/linux/pm.h
Original file line number Diff line number Diff line change
Expand Up @@ -276,9 +276,6 @@ typedef struct pm_message {
* example, if it detects that a child was unplugged while the system was
* asleep).
*
* Refer to Documentation/power/devices.txt for more information about the role
* of the above callbacks in the system suspend process.
*
* There also are callbacks related to runtime power management of devices.
* Again, as a rule these callbacks are executed by the PM core for subsystems
* (PM domains, device types, classes and bus types) and the subsystem-level
Expand Down

0 comments on commit 2728b2d

Please sign in to comment.