aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mn10300/kernel/mn10300-serial.c
diff options
context:
space:
mode:
authorMark Salter <msalter@redhat.com>2012-12-12 10:36:38 -0500
committerDavid Howells <dhowells@redhat.com>2012-12-12 10:46:14 -0500
commit97a70b14395be0ca61b9fa56f8ff5f6313c26423 (patch)
treebd34ec05a2d1be28210334c5693fb2ab94a74a5e /arch/mn10300/kernel/mn10300-serial.c
parent8f0bcbcab016324c2a3ba4cc715e8e523c29a578 (diff)
MN10300: ttySM: clean up unnecessary casting
The ttySM uart data register pointers are declared as void* pointers. Change them to u8* pointers so we don't need to use casts in the code. Signed-off-by: Mark Salter <msalter@redhat.com> Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'arch/mn10300/kernel/mn10300-serial.c')
-rw-r--r--arch/mn10300/kernel/mn10300-serial.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/mn10300/kernel/mn10300-serial.c b/arch/mn10300/kernel/mn10300-serial.c
index 587545cb7e4c..b7b5a4c270f5 100644
--- a/arch/mn10300/kernel/mn10300-serial.c
+++ b/arch/mn10300/kernel/mn10300-serial.c
@@ -1629,12 +1629,12 @@ static void mn10300_serial_console_write(struct console *co,
1629 1629
1630 while (*port->_status & SC01STR_TBF) 1630 while (*port->_status & SC01STR_TBF)
1631 continue; 1631 continue;
1632 *(u8 *) port->_txb = ch; 1632 *port->_txb = ch;
1633 1633
1634 if (ch == 0x0a) { 1634 if (ch == 0x0a) {
1635 while (*port->_status & SC01STR_TBF) 1635 while (*port->_status & SC01STR_TBF)
1636 continue; 1636 continue;
1637 *(u8 *) port->_txb = 0xd; 1637 *port->_txb = 0xd;
1638 } 1638 }
1639 } 1639 }
1640 1640
@@ -1759,12 +1759,12 @@ static void mn10300_serial_poll_put_char(struct uart_port *_port,
1759 tmp = *port->_intr; 1759 tmp = *port->_intr;
1760 1760
1761 if (ch == 0x0a) { 1761 if (ch == 0x0a) {
1762 *(u8 *) port->_txb = 0x0d; 1762 *port->_txb = 0x0d;
1763 while (*port->_status & SC01STR_TBF) 1763 while (*port->_status & SC01STR_TBF)
1764 continue; 1764 continue;
1765 } 1765 }
1766 1766
1767 *(u8 *) port->_txb = ch; 1767 *port->_txb = ch;
1768 while (*port->_status & SC01STR_TBF) 1768 while (*port->_status & SC01STR_TBF)
1769 continue; 1769 continue;
1770 1770