tty: tty_buffer: unify tty_insert_flip_string_{fixed_flag,flags}()
authorJiri Slaby (SUSE) <jirislaby@kernel.org>
Wed, 16 Aug 2023 10:55:23 +0000 (12:55 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Aug 2023 12:58:15 +0000 (14:58 +0200)
commitc26405fd289b74225b111b8f23e9e7eae1a02513
tree1b0de84c924ab0b715e5f479247a3a43f1c99396
parent46bc78c81b65044fa7bd4781e6501b756b3a86bc
tty: tty_buffer: unify tty_insert_flip_string_{fixed_flag,flags}()

They both do the same except for flags. One mem-copies the flags from
the caller, the other mem-sets to one flag given by the caller. This can
be unified with a simple if in the unified function.

Signed-off-by: "Jiri Slaby (SUSE)" <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20230816105530.3335-4-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/driver-api/tty/tty_buffer.rst
drivers/tty/tty_buffer.c
include/linux/tty_flip.h