diff options
Diffstat (limited to 'drivers/mmc/core/sdio_uart.c')
| -rw-r--r-- | drivers/mmc/core/sdio_uart.c | 13 | 
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/mmc/core/sdio_uart.c b/drivers/mmc/core/sdio_uart.c index ae7ef2e038be..50536fe59f1a 100644 --- a/drivers/mmc/core/sdio_uart.c +++ b/drivers/mmc/core/sdio_uart.c @@ -526,7 +526,7 @@ static void sdio_uart_irq(struct sdio_func *func)  	port->in_sdio_uart_irq = NULL;  } -static int uart_carrier_raised(struct tty_port *tport) +static bool uart_carrier_raised(struct tty_port *tport)  {  	struct sdio_uart_port *port =  			container_of(tport, struct sdio_uart_port, port); @@ -535,28 +535,27 @@ static int uart_carrier_raised(struct tty_port *tport)  		return 1;  	ret = sdio_uart_get_mctrl(port);  	sdio_uart_release_func(port); -	if (ret & TIOCM_CAR) -		return 1; -	return 0; + +	return ret & TIOCM_CAR;  }  /**   *	uart_dtr_rts		-	 port helper to set uart signals   *	@tport: tty port to be updated - *	@onoff: set to turn on DTR/RTS + *	@active: set to turn on DTR/RTS   *   *	Called by the tty port helpers when the modem signals need to be   *	adjusted during an open, close and hangup.   */ -static void uart_dtr_rts(struct tty_port *tport, int onoff) +static void uart_dtr_rts(struct tty_port *tport, bool active)  {  	struct sdio_uart_port *port =  			container_of(tport, struct sdio_uart_port, port);  	int ret = sdio_uart_claim_func(port);  	if (ret)  		return; -	if (onoff == 0) +	if (!active)  		sdio_uart_clear_mctrl(port, TIOCM_DTR | TIOCM_RTS);  	else  		sdio_uart_set_mctrl(port, TIOCM_DTR | TIOCM_RTS);  |