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>
This commit is contained in:
parent
44db113212
commit
2a58364da0
|
@ -552,14 +552,10 @@ static int pch_uart_hal_read(struct eg20t_port *priv, unsigned char *buf,
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int pch_uart_hal_get_iid(struct eg20t_port *priv)
|
static unsigned char pch_uart_hal_get_iid(struct eg20t_port *priv)
|
||||||
{
|
{
|
||||||
unsigned int iir;
|
return ioread8(priv->membase + UART_IIR) &\
|
||||||
int ret;
|
(PCH_UART_IIR_IID | PCH_UART_IIR_TOI | PCH_UART_IIR_IP);
|
||||||
|
|
||||||
iir = ioread8(priv->membase + UART_IIR);
|
|
||||||
ret = (iir & (PCH_UART_IIR_IID | PCH_UART_IIR_TOI | PCH_UART_IIR_IP));
|
|
||||||
return ret;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static u8 pch_uart_hal_get_line_status(struct eg20t_port *priv)
|
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)
|
||||||
unsigned int handled;
|
unsigned int handled;
|
||||||
u8 lsr;
|
u8 lsr;
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
unsigned int iid;
|
unsigned char iid;
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
|
|
||||||
spin_lock_irqsave(&priv->port.lock, flags);
|
spin_lock_irqsave(&priv->port.lock, flags);
|
||||||
|
|
Loading…
Reference in New Issue