]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
tty: n_gsm: update doc example to use header for N_GSM0710 define
authorMartin Hundebøll <martin@geanix.com>
Wed, 10 Jul 2019 19:26:54 +0000 (21:26 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Sep 2019 10:43:43 +0000 (12:43 +0200)
There is no reason to gues the line discipline number when it is
available from tty.h

Signed-off-by: Martin Hundebøll <martin@geanix.com>
Link: https://lore.kernel.org/r/20190710192656.60381-2-martin@geanix.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/driver-api/serial/n_gsm.rst

index 4f37198423f7514fbe222e6794f4a87a4f7403c5..0ba731ab00b22fa70be664c4536e9cd41db80646 100644 (file)
@@ -23,7 +23,7 @@ Major parts of the initialization program :
 (a good starting point is util-linux-ng/sys-utils/ldattach.c)::
 
   #include <linux/gsmmux.h>
-  #define N_GSM0710    21      /* GSM 0710 Mux */
+  #include <linux/tty.h>
   #define DEFAULT_SPEED        B115200
   #define SERIAL_PORT  /dev/ttyS0