Message ID | cf67865525b30f58dbc8fbbe13865f73b5377c2f.1713533298.git.pnewman@connecttech.com |
---|---|
State | New |
Headers | show |
Series | serial: exar: fix kbuild warnings and code style | expand |
diff --git a/drivers/tty/serial/8250/8250_exar.c b/drivers/tty/serial/8250/8250_exar.c index 01748ddbf729..8665d3b7b673 100644 --- a/drivers/tty/serial/8250/8250_exar.c +++ b/drivers/tty/serial/8250/8250_exar.c @@ -300,7 +300,7 @@ static inline void exar_ee_write_bit(struct exar8250 *priv, int bit) udelay(2); } -static inline u8 exar_ee_read_bit(struct exar8250 *priv) +static inline bool exar_ee_read_bit(struct exar8250 *priv) { u8 regb; u8 value = UART_EXAR_REGB_EECS; @@ -317,7 +317,7 @@ static inline u8 exar_ee_read_bit(struct exar8250 *priv) regb = exar_read_reg(priv, UART_EXAR_REGB); - return (regb & UART_EXAR_REGB_EEDO ? 1 : 0); + return regb & UART_EXAR_REGB_EEDO; } /**