mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
tty: rework break handling
Some hardware needs to do break handling itself and may have partial support only. Make break_ctl return an error code. Add a tty driver flag so you can indicate driver hardware side break support. Signed-off-by: Alan Cox <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
abbe629ae4
commit
9e98966c7b
20 changed files with 97 additions and 84 deletions
|
|
@ -1302,11 +1302,12 @@ static void capinc_tty_hangup(struct tty_struct *tty)
|
|||
#endif
|
||||
}
|
||||
|
||||
static void capinc_tty_break_ctl(struct tty_struct *tty, int state)
|
||||
static int capinc_tty_break_ctl(struct tty_struct *tty, int state)
|
||||
{
|
||||
#ifdef _DEBUG_TTYFUNCS
|
||||
printk(KERN_DEBUG "capinc_tty_break_ctl(%d)\n", state);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void capinc_tty_flush_buffer(struct tty_struct *tty)
|
||||
|
|
|
|||
Loading…
Reference in a new issue