diff options
author | Tomoya MORINAGA <tomoya.rohm@gmail.com> | 2012-03-26 01:43:01 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-04-09 15:08:41 -0400 |
commit | 2a58364da0c04f8dc42cdfe7a4de9d17e536cda8 (patch) | |
tree | 9de6182652ada2646547658b1ee0ee26400874fd /drivers/tty/serial/pch_uart.c | |
parent | 44db113212d86a5870c2bfe8fb767fa842d68805 (diff) |
pch_uart: change type to u8
Target uart register access size is 8bit.
However, 32bit is used at 2 points.
This patch modifies type "unsigned int" to "unsigned char".
Signed-off-by: Tomoya MORINAGA <tomoya.rohm@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/pch_uart.c')
-rw-r--r-- | drivers/tty/serial/pch_uart.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/drivers/tty/serial/pch_uart.c b/drivers/tty/serial/pch_uart.c index 110595ed33f5..32ac7ea259db 100644 --- a/drivers/tty/serial/pch_uart.c +++ b/drivers/tty/serial/pch_uart.c | |||
@@ -552,14 +552,10 @@ static int pch_uart_hal_read(struct eg20t_port *priv, unsigned char *buf, | |||
552 | return i; | 552 | return i; |
553 | } | 553 | } |
554 | 554 | ||
555 | static unsigned int pch_uart_hal_get_iid(struct eg20t_port *priv) | 555 | static unsigned char pch_uart_hal_get_iid(struct eg20t_port *priv) |
556 | { | 556 | { |
557 | unsigned int iir; | 557 | return ioread8(priv->membase + UART_IIR) &\ |
558 | int ret; | 558 | (PCH_UART_IIR_IID | PCH_UART_IIR_TOI | PCH_UART_IIR_IP); |
559 | |||
560 | iir = ioread8(priv->membase + UART_IIR); | ||
561 | ret = (iir & (PCH_UART_IIR_IID | PCH_UART_IIR_TOI | PCH_UART_IIR_IP)); | ||
562 | return ret; | ||
563 | } | 559 | } |
564 | 560 | ||
565 | static u8 pch_uart_hal_get_line_status(struct eg20t_port *priv) | 561 | static u8 pch_uart_hal_get_line_status(struct eg20t_port *priv) |
@@ -1045,7 +1041,7 @@ static irqreturn_t pch_uart_interrupt(int irq, void *dev_id) | |||
1045 | unsigned int handled; | 1041 | unsigned int handled; |
1046 | u8 lsr; | 1042 | u8 lsr; |
1047 | int ret = 0; | 1043 | int ret = 0; |
1048 | unsigned int iid; | 1044 | unsigned char iid; |
1049 | unsigned long flags; | 1045 | unsigned long flags; |
1050 | 1046 | ||
1051 | spin_lock_irqsave(&priv->port.lock, flags); | 1047 | spin_lock_irqsave(&priv->port.lock, flags); |