diff options
author | Tudor Ambarus <tudor.ambarus@linaro.org> | 2024-01-19 10:45:23 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-01-27 19:05:19 -0800 |
commit | 92e32ed303a6c4dc5a5ad9ec54785a6245bcd8fa (patch) | |
tree | 36aa02010e4573af404745312a9cf8293ce134ae /drivers/tty/serial/samsung_tty.c | |
parent | be96d89451040d58bbaf81f1c48c5c836cf6d520 (diff) | |
download | lwn-92e32ed303a6c4dc5a5ad9ec54785a6245bcd8fa.tar.gz lwn-92e32ed303a6c4dc5a5ad9ec54785a6245bcd8fa.zip |
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: Sam Protsenko <semen.protsenko@linaro.org>
Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Link: https://lore.kernel.org/r/20240119104526.1221243-17-tudor.ambarus@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/samsung_tty.c')
-rw-r--r-- | drivers/tty/serial/samsung_tty.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/tty/serial/samsung_tty.c b/drivers/tty/serial/samsung_tty.c index bdc81ab4af91..149f618e22ce 100644 --- a/drivers/tty/serial/samsung_tty.c +++ b/drivers/tty/serial/samsung_tty.c @@ -590,8 +590,8 @@ static inline const struct s3c2410_uartcfg return ourport->cfg; } -static int s3c24xx_serial_rx_fifocnt(const struct s3c24xx_uart_port *ourport, - u32 ufstat) +static unsigned int +s3c24xx_serial_rx_fifocnt(const struct s3c24xx_uart_port *ourport, u32 ufstat) { const struct s3c24xx_uart_info *info = ourport->info; |