tty: make tty_set_operations an inline
authorJiri Slaby <jslaby@suse.cz>
Fri, 23 Jul 2021 07:43:15 +0000 (09:43 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Jul 2021 10:17:21 +0000 (12:17 +0200)
commitcb9ea618ee60313d9278b2ba75f56da2531c8cac
tree9d2972ab6e358432675b93298ea15fd8a95dc78e
parent56ec5880a28eae0f508e88e9e80d2e82a471c9be
tty: make tty_set_operations an inline

Since commit f34d7a5b7010 (tty: The big operations rework) in 2008,
tty_set_operations() is a simple one-line assignment. There is no reason
for this to be an exported function, hence move it to a header and make
an inline from that.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20210723074317.32690-7-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/tty_io.c
include/linux/tty_driver.h