summaryrefslogtreecommitdiff
path: root/arch/powerpc/include/asm/termios.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2022-08-09 17:17:04 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-09-09 10:44:34 +0200
commit38fc315a73f7a1b2d19eb32dd55de089b78b2a54 (patch)
tree158b5f3e9a07e974f80c1a386f778287a9148f1e /arch/powerpc/include/asm/termios.h
parentc9874d3ffeaf8ee215187692ed918b3031d996d1 (diff)
termios: consolidate values for VDISCARD in INIT_C_CC
On old systems it used to be ^O. Linux had never actually used the value, but INIT_C_CC (on i386) did initialize it to ^O; unfortunately, it had a typo in the comment claiming that to be ^U. Most of the architectures copied the (correct) definition along with mistaken comment. alpha, powerpc and sparc tried to make the definition match comment. However, util-linux still resets it to ^O on any architecture, ^O is the historical value, kernel ignores it anyway and finally, Linus said "Just change everybody to do the same, nobody cares about VDISCARD". Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Link: https://lore.kernel.org/r/YxDmy//MKzs3ye7l@ZenIV Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/powerpc/include/asm/termios.h')
-rw-r--r--arch/powerpc/include/asm/termios.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/include/asm/termios.h b/arch/powerpc/include/asm/termios.h
index 5c003322fe29..e18a05a6ed34 100644
--- a/arch/powerpc/include/asm/termios.h
+++ b/arch/powerpc/include/asm/termios.h
@@ -10,7 +10,7 @@
#include <uapi/asm/termios.h>
-/* ^C ^\ del ^U ^D 1 0 0 0 0 ^W ^R ^Z ^Q ^S ^V ^U */
-#define INIT_C_CC "\003\034\177\025\004\001\000\000\000\000\027\022\032\021\023\026\025"
+/* ^C ^\ del ^U ^D 1 0 0 0 0 ^W ^R ^Z ^Q ^S ^V ^O */
+#define INIT_C_CC "\003\034\177\025\004\001\000\000\000\000\027\022\032\021\023\026\017"
#endif /* _ASM_POWERPC_TERMIOS_H */