drivers/uart: Replace 'unsigned long int' by 'unsigned long'
As suggested by the linter: Prefer 'unsigned long' over 'unsigned long int' as the int is unnecessary Link: https://qa.coreboot.org/job/coreboot-untested-files/lastSuccessfulBuild/artifact/lint.txt Change-Id: I1416a2f7d75a888dcaf0775894aced981800866f Signed-off-by: Ariel Otilibili <otilibil@eurecom.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/85784 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Maximilian Brune <maximilian.brune@9elements.com> Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
This commit is contained in:
parent
27c7719788
commit
436503fda4
2 changed files with 6 additions and 6 deletions
|
|
@ -26,14 +26,14 @@ static int uart8250_can_tx_byte(unsigned int base_port)
|
|||
|
||||
static void uart8250_tx_byte(unsigned int base_port, unsigned char data)
|
||||
{
|
||||
unsigned long int i = SINGLE_CHAR_TIMEOUT;
|
||||
unsigned long i = SINGLE_CHAR_TIMEOUT;
|
||||
while (i-- && !uart8250_can_tx_byte(base_port));
|
||||
outb(data, base_port + UART8250_TBR);
|
||||
}
|
||||
|
||||
static void uart8250_tx_flush(unsigned int base_port)
|
||||
{
|
||||
unsigned long int i = FIFO_TIMEOUT;
|
||||
unsigned long i = FIFO_TIMEOUT;
|
||||
while (i-- && !(inb(base_port + UART8250_LSR) & UART8250_LSR_TEMT));
|
||||
}
|
||||
|
||||
|
|
@ -44,7 +44,7 @@ static int uart8250_can_rx_byte(unsigned int base_port)
|
|||
|
||||
static unsigned char uart8250_rx_byte(unsigned int base_port)
|
||||
{
|
||||
unsigned long int i = SINGLE_CHAR_TIMEOUT;
|
||||
unsigned long i = SINGLE_CHAR_TIMEOUT;
|
||||
while (i && !uart8250_can_rx_byte(base_port))
|
||||
i--;
|
||||
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ static int uart8250_mem_can_tx_byte(void *base)
|
|||
|
||||
static void uart8250_mem_tx_byte(void *base, unsigned char data)
|
||||
{
|
||||
unsigned long int i = SINGLE_CHAR_TIMEOUT;
|
||||
unsigned long i = SINGLE_CHAR_TIMEOUT;
|
||||
while (i-- && !uart8250_mem_can_tx_byte(base))
|
||||
udelay(1);
|
||||
uart8250_write(base, UART8250_TBR, data);
|
||||
|
|
@ -54,7 +54,7 @@ static void uart8250_mem_tx_byte(void *base, unsigned char data)
|
|||
|
||||
static void uart8250_mem_tx_flush(void *base)
|
||||
{
|
||||
unsigned long int i = FIFO_TIMEOUT;
|
||||
unsigned long i = FIFO_TIMEOUT;
|
||||
while (i-- && !(uart8250_read(base, UART8250_LSR) & UART8250_LSR_TEMT))
|
||||
udelay(1);
|
||||
}
|
||||
|
|
@ -66,7 +66,7 @@ static int uart8250_mem_can_rx_byte(void *base)
|
|||
|
||||
static unsigned char uart8250_mem_rx_byte(void *base)
|
||||
{
|
||||
unsigned long int i = SINGLE_CHAR_TIMEOUT;
|
||||
unsigned long i = SINGLE_CHAR_TIMEOUT;
|
||||
while (i && !uart8250_mem_can_rx_byte(base)) {
|
||||
udelay(1);
|
||||
i--;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue