diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/alpha/kernel/srmcons.c | 3 | ||||
-rw-r--r-- | arch/ia64/hp/sim/simserial.c | 3 | ||||
-rw-r--r-- | arch/mn10300/kernel/mn10300-serial.c | 4 | ||||
-rw-r--r-- | arch/parisc/kernel/pdc_cons.c | 2 | ||||
-rw-r--r-- | arch/um/drivers/chan_kern.c | 8 | ||||
-rw-r--r-- | arch/xtensa/platforms/iss/console.c | 3 |
6 files changed, 10 insertions, 13 deletions
diff --git a/arch/alpha/kernel/srmcons.c b/arch/alpha/kernel/srmcons.c index 59b7bbad8394..21b57a66e809 100644 --- a/arch/alpha/kernel/srmcons.c +++ b/arch/alpha/kernel/srmcons.c | |||
@@ -46,13 +46,14 @@ typedef union _srmcons_result { | |||
46 | static int | 46 | static int |
47 | srmcons_do_receive_chars(struct tty_struct *tty) | 47 | srmcons_do_receive_chars(struct tty_struct *tty) |
48 | { | 48 | { |
49 | struct tty_port *port = tty->port; | ||
49 | srmcons_result result; | 50 | srmcons_result result; |
50 | int count = 0, loops = 0; | 51 | int count = 0, loops = 0; |
51 | 52 | ||
52 | do { | 53 | do { |
53 | result.as_long = callback_getc(0); | 54 | result.as_long = callback_getc(0); |
54 | if (result.bits.status < 2) { | 55 | if (result.bits.status < 2) { |
55 | tty_insert_flip_char(tty, (char)result.bits.c, 0); | 56 | tty_insert_flip_char(port, (char)result.bits.c, 0); |
56 | count++; | 57 | count++; |
57 | } | 58 | } |
58 | } while((result.bits.status & 1) && (++loops < 10)); | 59 | } while((result.bits.status & 1) && (++loops < 10)); |
diff --git a/arch/ia64/hp/sim/simserial.c b/arch/ia64/hp/sim/simserial.c index fc3924d18c1f..f8ae5d8eb106 100644 --- a/arch/ia64/hp/sim/simserial.c +++ b/arch/ia64/hp/sim/simserial.c | |||
@@ -55,6 +55,7 @@ static struct console *console; | |||
55 | 55 | ||
56 | static void receive_chars(struct tty_struct *tty) | 56 | static void receive_chars(struct tty_struct *tty) |
57 | { | 57 | { |
58 | struct tty_port *port = tty->port; | ||
58 | unsigned char ch; | 59 | unsigned char ch; |
59 | static unsigned char seen_esc = 0; | 60 | static unsigned char seen_esc = 0; |
60 | 61 | ||
@@ -81,7 +82,7 @@ static void receive_chars(struct tty_struct *tty) | |||
81 | } | 82 | } |
82 | seen_esc = 0; | 83 | seen_esc = 0; |
83 | 84 | ||
84 | if (tty_insert_flip_char(tty, ch, TTY_NORMAL) == 0) | 85 | if (tty_insert_flip_char(port, ch, TTY_NORMAL) == 0) |
85 | break; | 86 | break; |
86 | } | 87 | } |
87 | tty_flip_buffer_push(tty); | 88 | tty_flip_buffer_push(tty); |
diff --git a/arch/mn10300/kernel/mn10300-serial.c b/arch/mn10300/kernel/mn10300-serial.c index 9b2232a78ff9..54ef40ceaaed 100644 --- a/arch/mn10300/kernel/mn10300-serial.c +++ b/arch/mn10300/kernel/mn10300-serial.c | |||
@@ -667,14 +667,14 @@ insert: | |||
667 | else | 667 | else |
668 | flag = TTY_NORMAL; | 668 | flag = TTY_NORMAL; |
669 | 669 | ||
670 | tty_insert_flip_char(tty, ch, flag); | 670 | tty_insert_flip_char(port, ch, flag); |
671 | } | 671 | } |
672 | 672 | ||
673 | /* overrun is special, since it's reported immediately, and doesn't | 673 | /* overrun is special, since it's reported immediately, and doesn't |
674 | * affect the current character | 674 | * affect the current character |
675 | */ | 675 | */ |
676 | if (overrun) | 676 | if (overrun) |
677 | tty_insert_flip_char(tty, 0, TTY_OVERRUN); | 677 | tty_insert_flip_char(port, 0, TTY_OVERRUN); |
678 | 678 | ||
679 | count--; | 679 | count--; |
680 | if (count <= 0) { | 680 | if (count <= 0) { |
diff --git a/arch/parisc/kernel/pdc_cons.c b/arch/parisc/kernel/pdc_cons.c index efc5e7d30530..4d92a379eb21 100644 --- a/arch/parisc/kernel/pdc_cons.c +++ b/arch/parisc/kernel/pdc_cons.c | |||
@@ -147,7 +147,7 @@ static void pdc_console_poll(unsigned long unused) | |||
147 | data = pdc_console_poll_key(NULL); | 147 | data = pdc_console_poll_key(NULL); |
148 | if (data == -1) | 148 | if (data == -1) |
149 | break; | 149 | break; |
150 | tty_insert_flip_char(tty, data & 0xFF, TTY_NORMAL); | 150 | tty_insert_flip_char(&tty_port, data & 0xFF, TTY_NORMAL); |
151 | count ++; | 151 | count ++; |
152 | } | 152 | } |
153 | 153 | ||
diff --git a/arch/um/drivers/chan_kern.c b/arch/um/drivers/chan_kern.c index 4ff2503a1bb8..795bd8102205 100644 --- a/arch/um/drivers/chan_kern.c +++ b/arch/um/drivers/chan_kern.c | |||
@@ -81,12 +81,6 @@ static const struct chan_ops not_configged_ops = { | |||
81 | }; | 81 | }; |
82 | #endif /* CONFIG_NOCONFIG_CHAN */ | 82 | #endif /* CONFIG_NOCONFIG_CHAN */ |
83 | 83 | ||
84 | static void tty_receive_char(struct tty_struct *tty, char ch) | ||
85 | { | ||
86 | if (tty) | ||
87 | tty_insert_flip_char(tty, ch, TTY_NORMAL); | ||
88 | } | ||
89 | |||
90 | static int open_one_chan(struct chan *chan) | 84 | static int open_one_chan(struct chan *chan) |
91 | { | 85 | { |
92 | int fd, err; | 86 | int fd, err; |
@@ -569,7 +563,7 @@ void chan_interrupt(struct line *line, struct tty_struct *tty, int irq) | |||
569 | } | 563 | } |
570 | err = chan->ops->read(chan->fd, &c, chan->data); | 564 | err = chan->ops->read(chan->fd, &c, chan->data); |
571 | if (err > 0) | 565 | if (err > 0) |
572 | tty_receive_char(tty, c); | 566 | tty_insert_flip_char(port, c, TTY_NORMAL); |
573 | } while (err > 0); | 567 | } while (err > 0); |
574 | 568 | ||
575 | if (err == 0) | 569 | if (err == 0) |
diff --git a/arch/xtensa/platforms/iss/console.c b/arch/xtensa/platforms/iss/console.c index 8207a119eee9..62447d63890c 100644 --- a/arch/xtensa/platforms/iss/console.c +++ b/arch/xtensa/platforms/iss/console.c | |||
@@ -98,6 +98,7 @@ static int rs_write(struct tty_struct * tty, | |||
98 | static void rs_poll(unsigned long priv) | 98 | static void rs_poll(unsigned long priv) |
99 | { | 99 | { |
100 | struct tty_struct* tty = (struct tty_struct*) priv; | 100 | struct tty_struct* tty = (struct tty_struct*) priv; |
101 | struct tty_port *port = tty->port; | ||
101 | 102 | ||
102 | struct timeval tv = { .tv_sec = 0, .tv_usec = 0 }; | 103 | struct timeval tv = { .tv_sec = 0, .tv_usec = 0 }; |
103 | int i = 0; | 104 | int i = 0; |
@@ -107,7 +108,7 @@ static void rs_poll(unsigned long priv) | |||
107 | 108 | ||
108 | while (__simc(SYS_select_one, 0, XTISS_SELECT_ONE_READ, (int)&tv,0,0)){ | 109 | while (__simc(SYS_select_one, 0, XTISS_SELECT_ONE_READ, (int)&tv,0,0)){ |
109 | __simc (SYS_read, 0, (unsigned long)&c, 1, 0, 0); | 110 | __simc (SYS_read, 0, (unsigned long)&c, 1, 0, 0); |
110 | tty_insert_flip_char(tty, c, TTY_NORMAL); | 111 | tty_insert_flip_char(port, c, TTY_NORMAL); |
111 | i++; | 112 | i++; |
112 | } | 113 | } |
113 | 114 | ||