aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Wunner <lukas@wunner.de>2016-01-02 12:47:17 -0500
committerDaniel Vetter <daniel.vetter@ffwll.ch>2016-01-04 02:11:49 -0500
commit3a848662c75118e1ee4653e08e25943d8b4ab8b7 (patch)
tree6b3d80d11a69e82be22eeb1da981c921d7efa91d
parent69a0f89c0641668d402573a05b327ac8ed6d2560 (diff)
vga_switcheroo: Prettify documentation
Fix indentation of vga_switcheroo sections in gpu.tmpl. Change section type of API documentation from "chapter" to "sect1" so that the individual functions no longer clutter up the ToC. Group together under a new "API" chapter. Fix wording "heretoforth" -> "henceforth". Signed-off-by: Lukas Wunner <lukas@wunner.de> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r--Documentation/DocBook/gpu.tmpl40
-rw-r--r--drivers/gpu/vga/vga_switcheroo.c2
2 files changed, 21 insertions, 21 deletions
diff --git a/Documentation/DocBook/gpu.tmpl b/Documentation/DocBook/gpu.tmpl
index 6c6e81a9eaf4..225a246c5f53 100644
--- a/Documentation/DocBook/gpu.tmpl
+++ b/Documentation/DocBook/gpu.tmpl
@@ -3625,37 +3625,37 @@ int num_ioctls;</synopsis>
3625 3625
3626 <chapter id="modes_of_use"> 3626 <chapter id="modes_of_use">
3627 <title>Modes of Use</title> 3627 <title>Modes of Use</title>
3628 <sect1> 3628 <sect1>
3629 <title>Manual switching and manual power control</title> 3629 <title>Manual switching and manual power control</title>
3630!Pdrivers/gpu/vga/vga_switcheroo.c Manual switching and manual power control 3630!Pdrivers/gpu/vga/vga_switcheroo.c Manual switching and manual power control
3631 </sect1> 3631 </sect1>
3632 <sect1> 3632 <sect1>
3633 <title>Driver power control</title> 3633 <title>Driver power control</title>
3634!Pdrivers/gpu/vga/vga_switcheroo.c Driver power control 3634!Pdrivers/gpu/vga/vga_switcheroo.c Driver power control
3635 </sect1> 3635 </sect1>
3636 </chapter> 3636 </chapter>
3637 3637
3638 <chapter id="pubfunctions"> 3638 <chapter id="api">
3639 <title>Public functions</title> 3639 <title>API</title>
3640 <sect1>
3641 <title>Public functions</title>
3640!Edrivers/gpu/vga/vga_switcheroo.c 3642!Edrivers/gpu/vga/vga_switcheroo.c
3641 </chapter> 3643 </sect1>
3642 3644 <sect1>
3643 <chapter id="pubstructures"> 3645 <title>Public structures</title>
3644 <title>Public structures</title>
3645!Finclude/linux/vga_switcheroo.h vga_switcheroo_handler 3646!Finclude/linux/vga_switcheroo.h vga_switcheroo_handler
3646!Finclude/linux/vga_switcheroo.h vga_switcheroo_client_ops 3647!Finclude/linux/vga_switcheroo.h vga_switcheroo_client_ops
3647 </chapter> 3648 </sect1>
3648 3649 <sect1>
3649 <chapter id="pubconstants"> 3650 <title>Public constants</title>
3650 <title>Public constants</title>
3651!Finclude/linux/vga_switcheroo.h vga_switcheroo_client_id 3651!Finclude/linux/vga_switcheroo.h vga_switcheroo_client_id
3652!Finclude/linux/vga_switcheroo.h vga_switcheroo_state 3652!Finclude/linux/vga_switcheroo.h vga_switcheroo_state
3653 </chapter> 3653 </sect1>
3654 3654 <sect1>
3655 <chapter id="privstructures"> 3655 <title>Private structures</title>
3656 <title>Private structures</title>
3657!Fdrivers/gpu/vga/vga_switcheroo.c vgasr_priv 3656!Fdrivers/gpu/vga/vga_switcheroo.c vgasr_priv
3658!Fdrivers/gpu/vga/vga_switcheroo.c vga_switcheroo_client 3657!Fdrivers/gpu/vga/vga_switcheroo.c vga_switcheroo_client
3658 </sect1>
3659 </chapter> 3659 </chapter>
3660 3660
3661!Cdrivers/gpu/vga/vga_switcheroo.c 3661!Cdrivers/gpu/vga/vga_switcheroo.c
diff --git a/drivers/gpu/vga/vga_switcheroo.c b/drivers/gpu/vga/vga_switcheroo.c
index 41edd5a3f100..d64d9058bce5 100644
--- a/drivers/gpu/vga/vga_switcheroo.c
+++ b/drivers/gpu/vga/vga_switcheroo.c
@@ -63,7 +63,7 @@
63 * for the inactive GPU.) Also, muxes are often used to cut power to the 63 * for the inactive GPU.) Also, muxes are often used to cut power to the
64 * discrete GPU while it is not used. 64 * discrete GPU while it is not used.
65 * 65 *
66 * DRM drivers register GPUs with vga_switcheroo, these are heretoforth called 66 * DRM drivers register GPUs with vga_switcheroo, these are henceforth called
67 * clients. The mux is called the handler. Muxless machines also register a 67 * clients. The mux is called the handler. Muxless machines also register a
68 * handler to control the power state of the discrete GPU, its ->switchto 68 * handler to control the power state of the discrete GPU, its ->switchto
69 * callback is a no-op for obvious reasons. The discrete GPU is often equipped 69 * callback is a no-op for obvious reasons. The discrete GPU is often equipped