diff options
author | Mark Salter <msalter@redhat.com> | 2012-12-12 10:36:38 -0500 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2012-12-12 10:46:14 -0500 |
commit | 97a70b14395be0ca61b9fa56f8ff5f6313c26423 (patch) | |
tree | bd34ec05a2d1be28210334c5693fb2ab94a74a5e /arch | |
parent | 8f0bcbcab016324c2a3ba4cc715e8e523c29a578 (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')
-rw-r--r-- | arch/mn10300/kernel/mn10300-serial.c | 8 | ||||
-rw-r--r-- | arch/mn10300/kernel/mn10300-serial.h | 4 |
2 files changed, 6 insertions, 6 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 | ||
diff --git a/arch/mn10300/kernel/mn10300-serial.h b/arch/mn10300/kernel/mn10300-serial.h index 0004e61619a5..01791c68ea1f 100644 --- a/arch/mn10300/kernel/mn10300-serial.h +++ b/arch/mn10300/kernel/mn10300-serial.h | |||
@@ -58,8 +58,8 @@ struct mn10300_serial_port { | |||
58 | volatile u16 *_control; /* control register pointer */ | 58 | volatile u16 *_control; /* control register pointer */ |
59 | volatile u8 *_status; /* status register pointer */ | 59 | volatile u8 *_status; /* status register pointer */ |
60 | volatile u8 *_intr; /* interrupt register pointer */ | 60 | volatile u8 *_intr; /* interrupt register pointer */ |
61 | volatile void *_rxb; /* receive buffer register pointer */ | 61 | volatile u8 *_rxb; /* receive buffer register pointer */ |
62 | volatile void *_txb; /* transmit buffer register pointer */ | 62 | volatile u8 *_txb; /* transmit buffer register pointer */ |
63 | volatile u16 *_tmicr; /* timer interrupt control register */ | 63 | volatile u16 *_tmicr; /* timer interrupt control register */ |
64 | volatile u8 *_tmxmd; /* baud rate timer mode register */ | 64 | volatile u8 *_tmxmd; /* baud rate timer mode register */ |
65 | volatile u16 *_tmxbr; /* baud rate timer base register */ | 65 | volatile u16 *_tmxbr; /* baud rate timer base register */ |