]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
Documentation: move tty to driver-api
authorJiri Slaby <jslaby@suse.cz>
Mon, 11 Apr 2022 11:01:38 +0000 (13:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 Apr 2022 16:24:23 +0000 (18:24 +0200)
Based on discussion starting as 87mthw2o93.fsf@meer.lwn.net, let's move
the tty documentation to driver-api. It's more appropriate there.

Cc: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20220411110143.10019-2-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/driver-api/index.rst
Documentation/driver-api/serial/driver.rst
Documentation/driver-api/tty/index.rst [moved from Documentation/tty/index.rst with 86% similarity]
Documentation/driver-api/tty/n_tty.rst [moved from Documentation/tty/n_tty.rst with 100% similarity]
Documentation/driver-api/tty/tty_buffer.rst [moved from Documentation/tty/tty_buffer.rst with 100% similarity]
Documentation/driver-api/tty/tty_driver.rst [moved from Documentation/tty/tty_driver.rst with 100% similarity]
Documentation/driver-api/tty/tty_internals.rst [moved from Documentation/tty/tty_internals.rst with 100% similarity]
Documentation/driver-api/tty/tty_ldisc.rst [moved from Documentation/tty/tty_ldisc.rst with 100% similarity]
Documentation/driver-api/tty/tty_port.rst [moved from Documentation/tty/tty_port.rst with 100% similarity]
Documentation/driver-api/tty/tty_struct.rst [moved from Documentation/tty/tty_struct.rst with 100% similarity]
Documentation/index.rst

index a7b0223e2886a2d1325f3923404a5d94a06f803c..bbbbcf20b7ce4e43bb0205b6989310c156b5713b 100644 (file)
@@ -101,6 +101,7 @@ available subsections can be seen below.
    surface_aggregator/index
    switchtec
    sync_file
+   tty
    vfio-mediated-device
    vfio
    vfio-pci-device-specific-driver-acceptance
index 06ec04ba086fd96d71d5fdf191e7c37972871575..7ef83fd3917b26a38091b1cb29b46ff18d124fdc 100644 (file)
@@ -311,7 +311,7 @@ hardware.
        This call must not sleep
 
   set_ldisc(port,termios)
-       Notifier for discipline change. See Documentation/tty/tty_ldisc.rst.
+       Notifier for discipline change. See ../tty/tty_ldisc.rst.
 
        Locking: caller holds tty_port->mutex
 
similarity index 86%
rename from Documentation/tty/index.rst
rename to Documentation/driver-api/tty/index.rst
index 21ea0cb21e5588904bc890f2d69dd3c060b0d9ae..2240e52203d6a3aba988356fd0ef17f4f48792c8 100644 (file)
@@ -43,11 +43,10 @@ Writing TTY Driver
 ==================
 
 Before one starts writing a TTY driver, they must consider
-:doc:`Serial <../driver-api/serial/driver>` and :doc:`USB Serial
-<../usb/usb-serial>` layers
-first. Drivers for serial devices can often use one of these specific layers to
-implement a serial driver. Only special devices should be handled directly by
-the TTY Layer. If you are about to write such a driver, read on.
+:doc:`Serial <../serial/driver>` and :doc:`USB Serial <../../usb/usb-serial>`
+layers first. Drivers for serial devices can often use one of these specific
+layers to implement a serial driver. Only special devices should be handled
+directly by the TTY Layer. If you are about to write such a driver, read on.
 
 A *typical* sequence a TTY driver performs is as follows:
 
index 1988c19d9daf482e15a54d5836e1dfe4cac13cd9..5a5acac985f3e977e468ec8cb1040aa9d71f2c09 100644 (file)
@@ -137,7 +137,6 @@ needed).
    misc-devices/index
    scheduler/index
    mhi/index
-   tty/index
    peci/index
 
 Architecture-agnostic documentation