tty: move the async flags from the serial code into the tty includes
PATCH 1/1 tty: move the async flags from the serial code into the tty includes
From: Alan Cox <[email protected]>
These are used with the tty_port flags which are tty generic so move the flags into a more sensible place. This then makes it possible to add helpers such as those suggested by Huang Shijie.
Signed-off-by Alan Cox <[email protected]>
---
include/linux/serial.h | 2 + include/linux/tty.h | 1 + include/linux/tty_flags.h | 78 +++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 81 insertions(+) create mode 100644 include/linux/tty_flags.h
include/linux/serial.h +2 -0
@@ -15,6 +15,8 @@#ifdef __KERNEL__#include <asm/page.h> +#include <linux/tty_flags.h> +/* * Counters of the input lines (CTS, DSR, RI, CD) interrupts */
include/linux/tty.h +1 -0
@@ -43,6 +43,7 @@#include <linux/tty_driver.h> #include <linux/tty_ldisc.h> #include <linux/mutex.h> +#include <linux/tty_flags.h>
include/linux/tty_flags.h new file +78 -0
78 lines not on this page · raw message