Skip to content

Commit 8b57b30

Browse files
committed
Merge tag 'tty-5.18-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty
Pull serial driver fix from Greg KH: "This is a single serial driver fix for a build issue that showed up due to changes that came in through the tty tree in 5.18-rc1 that were missed previously. It resolves a build error with the mpc52xx_uart driver. It has been in linux-next this week with no reported problems" * tag 'tty-5.18-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty: tty: serial: mpc52xx_uart: make rx/tx hooks return unsigned, part II.
2 parents 95aa17c + dbf3f09 commit 8b57b30

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

drivers/tty/serial/mpc52xx_uart.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -436,31 +436,31 @@ static void mpc512x_psc_fifo_init(struct uart_port *port)
436436
out_be32(&FIFO_512x(port)->rximr, MPC512x_PSC_FIFO_ALARM);
437437
}
438438

439-
static int mpc512x_psc_raw_rx_rdy(struct uart_port *port)
439+
static unsigned int mpc512x_psc_raw_rx_rdy(struct uart_port *port)
440440
{
441441
return !(in_be32(&FIFO_512x(port)->rxsr) & MPC512x_PSC_FIFO_EMPTY);
442442
}
443443

444-
static int mpc512x_psc_raw_tx_rdy(struct uart_port *port)
444+
static unsigned int mpc512x_psc_raw_tx_rdy(struct uart_port *port)
445445
{
446446
return !(in_be32(&FIFO_512x(port)->txsr) & MPC512x_PSC_FIFO_FULL);
447447
}
448448

449-
static int mpc512x_psc_rx_rdy(struct uart_port *port)
449+
static unsigned int mpc512x_psc_rx_rdy(struct uart_port *port)
450450
{
451451
return in_be32(&FIFO_512x(port)->rxsr)
452452
& in_be32(&FIFO_512x(port)->rximr)
453453
& MPC512x_PSC_FIFO_ALARM;
454454
}
455455

456-
static int mpc512x_psc_tx_rdy(struct uart_port *port)
456+
static unsigned int mpc512x_psc_tx_rdy(struct uart_port *port)
457457
{
458458
return in_be32(&FIFO_512x(port)->txsr)
459459
& in_be32(&FIFO_512x(port)->tximr)
460460
& MPC512x_PSC_FIFO_ALARM;
461461
}
462462

463-
static int mpc512x_psc_tx_empty(struct uart_port *port)
463+
static unsigned int mpc512x_psc_tx_empty(struct uart_port *port)
464464
{
465465
return in_be32(&FIFO_512x(port)->txsr)
466466
& MPC512x_PSC_FIFO_EMPTY;
@@ -780,29 +780,29 @@ static void mpc5125_psc_fifo_init(struct uart_port *port)
780780
out_be32(&FIFO_5125(port)->rximr, MPC512x_PSC_FIFO_ALARM);
781781
}
782782

783-
static int mpc5125_psc_raw_rx_rdy(struct uart_port *port)
783+
static unsigned int mpc5125_psc_raw_rx_rdy(struct uart_port *port)
784784
{
785785
return !(in_be32(&FIFO_5125(port)->rxsr) & MPC512x_PSC_FIFO_EMPTY);
786786
}
787787

788-
static int mpc5125_psc_raw_tx_rdy(struct uart_port *port)
788+
static unsigned int mpc5125_psc_raw_tx_rdy(struct uart_port *port)
789789
{
790790
return !(in_be32(&FIFO_5125(port)->txsr) & MPC512x_PSC_FIFO_FULL);
791791
}
792792

793-
static int mpc5125_psc_rx_rdy(struct uart_port *port)
793+
static unsigned int mpc5125_psc_rx_rdy(struct uart_port *port)
794794
{
795795
return in_be32(&FIFO_5125(port)->rxsr) &
796796
in_be32(&FIFO_5125(port)->rximr) & MPC512x_PSC_FIFO_ALARM;
797797
}
798798

799-
static int mpc5125_psc_tx_rdy(struct uart_port *port)
799+
static unsigned int mpc5125_psc_tx_rdy(struct uart_port *port)
800800
{
801801
return in_be32(&FIFO_5125(port)->txsr) &
802802
in_be32(&FIFO_5125(port)->tximr) & MPC512x_PSC_FIFO_ALARM;
803803
}
804804

805-
static int mpc5125_psc_tx_empty(struct uart_port *port)
805+
static unsigned int mpc5125_psc_tx_empty(struct uart_port *port)
806806
{
807807
return in_be32(&FIFO_5125(port)->txsr) & MPC512x_PSC_FIFO_EMPTY;
808808
}

0 commit comments

Comments
 (0)