Replace with explicit samsung_tx_en and samsung_rx_en flags Signed-off-by: Steve Sakoman <steve@xxxxxxxxxxx> --- drivers/tty/serial/samsung.c | 4 ++-- include/linux/serial_core.h | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/tty/serial/samsung.c b/drivers/tty/serial/samsung.c index 2f8fa18..5f96651 100644 --- a/drivers/tty/serial/samsung.c +++ b/drivers/tty/serial/samsung.c @@ -83,8 +83,8 @@ static void dbg(const char *fmt, ...) #define S3C24XX_RX_DMA 2 /* macros to change one thing to another */ -#define tx_enabled(port) ((port)->unused[0]) -#define rx_enabled(port) ((port)->unused[1]) +#define tx_enabled(port) ((port)->samsung_tx_en) +#define rx_enabled(port) ((port)->samsung_rx_en) /* flag to ignore all characters coming in */ #define RXSTAT_DUMMY_READ (0x10000000) diff --git a/include/linux/serial_core.h b/include/linux/serial_core.h index 406edae..6f7485b 100644 --- a/include/linux/serial_core.h +++ b/include/linux/serial_core.h @@ -255,7 +255,8 @@ struct uart_port { struct device *dev; /* parent device */ unsigned char hub6; /* this should be in the 8250 driver */ unsigned char suspended; - unsigned char unused[2]; + unsigned char samsung_tx_en; + unsigned char samsung_rx_en; const char *name; /* port name */ struct attribute_group *attr_group; /* port specific attributes */ const struct attribute_group **tty_groups; /* all attributes (serial core use only) */ -- 2.7.4