ANDROID: GKI: restore termiox fields

To keep the kernel abi stable at this point in time, restore the termiox
pointer in struct tty_struct and the set_termiox() callback in struct
tty_operations that were removed in eef2158b0c ("tty: Remove dead
termiox code")

Bug: 161946584
Fixes: eef2158b0c ("tty: Remove dead termiox code")
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: Iea4739fc4725b6ebd10fc5e0367f91d938b6e364
This commit is contained in:
Greg Kroah-Hartman
2021-05-15 09:33:55 +02:00
parent 18593eb97f
commit db77ed2052
2 changed files with 8 additions and 0 deletions

View File

@@ -303,6 +303,10 @@ struct tty_struct {
spinlock_t flow_lock;
/* Termios values are protected by the termios rwsem */
struct ktermios termios, termios_locked;
/* termiox is estored only for ABI preservation, do not use */
struct termiox *termiox;
char name[64];
struct pid *pgrp; /* Protected by ctrl lock */
/*