serial: core: Update uart_poll_timeout() function to return unsigned long
authorVamshi Gajjela <vamshigajjela@google.com>
Thu, 9 Nov 2023 06:34:16 +0000 (12:04 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Jan 2024 15:20:05 +0000 (16:20 +0100)
commitcb86a3383aa7b9bb891daca691e596f6bfe52d82
treec5c05d9f57f1ee27202b29d463f783be56399836
parent43f012df3c1e979966524f79b5371fde6545488a
serial: core: Update uart_poll_timeout() function to return unsigned long

The function uart_fifo_timeout() returns an unsigned long value, which
is the number of jiffies. Therefore, change the variable timeout in the
function uart_poll_timeout() from int to unsigned long.
Change the return type of the function uart_poll_timeout() from int to
unsigned long to be consistent with the type of timeout values.

Signed-off-by: Vamshi Gajjela <vamshigajjela@google.com>
Link: https://lore.kernel.org/r/20231109063417.3971005-2-vamshigajjela@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/serial_core.h