Commit 92e32ed3 authored by Tudor Ambarus's avatar Tudor Ambarus Committed by Greg Kroah-Hartman

tty: serial: samsung: change return type for s3c24xx_serial_rx_fifocnt()

Change the return type of the s3c24xx_serial_rx_fifocnt() method to
``unsigned int`` as the method only returns the fifo size and does not
handle error codes.
Reviewed-by: default avatarSam Protsenko <semen.protsenko@linaro.org>
Signed-off-by: default avatarTudor Ambarus <tudor.ambarus@linaro.org>
Link: https://lore.kernel.org/r/20240119104526.1221243-17-tudor.ambarus@linaro.orgSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent be96d894
...@@ -590,8 +590,8 @@ static inline const struct s3c2410_uartcfg ...@@ -590,8 +590,8 @@ static inline const struct s3c2410_uartcfg
return ourport->cfg; return ourport->cfg;
} }
static int s3c24xx_serial_rx_fifocnt(const struct s3c24xx_uart_port *ourport, static unsigned int
u32 ufstat) s3c24xx_serial_rx_fifocnt(const struct s3c24xx_uart_port *ourport, u32 ufstat)
{ {
const struct s3c24xx_uart_info *info = ourport->info; const struct s3c24xx_uart_info *info = ourport->info;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment