projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3e7614
)
tty: add kernel-doc for tty_standard_install
author
Jiri Slaby
<jslaby@suse.cz>
Fri, 26 Nov 2021 08:16:10 +0000
(09:16 +0100)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 26 Nov 2021 15:27:43 +0000
(16:27 +0100)
It is the only missing exported function which is not documented. Fix
it.
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link:
https://lore.kernel.org/r/20211126081611.11001-23-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/tty_io.c
patch
|
blob
|
history
diff --git
a/drivers/tty/tty_io.c
b/drivers/tty/tty_io.c
index 26b325e44c537d8eada5348566aeff51f522fbb8..a4cfd254fda274e2e57b502f4f8032fbfb2e1624 100644
(file)
--- a/
drivers/tty/tty_io.c
+++ b/
drivers/tty/tty_io.c
@@
-1275,6
+1275,14
@@
void tty_init_termios(struct tty_struct *tty)
}
EXPORT_SYMBOL_GPL(tty_init_termios);
+/**
+ * tty_standard_install - usual tty->ops->install
+ * @driver: the driver for the tty
+ * @tty: the tty
+ *
+ * If the @driver overrides @tty->ops->install, it still can call this function
+ * to perform the standard install operations.
+ */
int tty_standard_install(struct tty_driver *driver, struct tty_struct *tty)
{
tty_init_termios(tty);