@@ -83,11 +83,11 @@ static irqreturn_t mpc5xxx_uart_process_int(struct uart_port *port);
83
83
84
84
struct psc_ops {
85
85
void (* fifo_init )(struct uart_port * port );
86
- int (* raw_rx_rdy )(struct uart_port * port );
87
- int (* raw_tx_rdy )(struct uart_port * port );
88
- int (* rx_rdy )(struct uart_port * port );
89
- int (* tx_rdy )(struct uart_port * port );
90
- int (* tx_empty )(struct uart_port * port );
86
+ unsigned int (* raw_rx_rdy )(struct uart_port * port );
87
+ unsigned int (* raw_tx_rdy )(struct uart_port * port );
88
+ unsigned int (* rx_rdy )(struct uart_port * port );
89
+ unsigned int (* tx_rdy )(struct uart_port * port );
90
+ unsigned int (* tx_empty )(struct uart_port * port );
91
91
void (* stop_rx )(struct uart_port * port );
92
92
void (* start_tx )(struct uart_port * port );
93
93
void (* stop_tx )(struct uart_port * port );
@@ -203,34 +203,34 @@ static void mpc52xx_psc_fifo_init(struct uart_port *port)
203
203
out_be16 (& psc -> mpc52xx_psc_imr , port -> read_status_mask );
204
204
}
205
205
206
- static int mpc52xx_psc_raw_rx_rdy (struct uart_port * port )
206
+ static unsigned int mpc52xx_psc_raw_rx_rdy (struct uart_port * port )
207
207
{
208
208
return in_be16 (& PSC (port )-> mpc52xx_psc_status )
209
209
& MPC52xx_PSC_SR_RXRDY ;
210
210
}
211
211
212
- static int mpc52xx_psc_raw_tx_rdy (struct uart_port * port )
212
+ static unsigned int mpc52xx_psc_raw_tx_rdy (struct uart_port * port )
213
213
{
214
214
return in_be16 (& PSC (port )-> mpc52xx_psc_status )
215
215
& MPC52xx_PSC_SR_TXRDY ;
216
216
}
217
217
218
218
219
- static int mpc52xx_psc_rx_rdy (struct uart_port * port )
219
+ static unsigned int mpc52xx_psc_rx_rdy (struct uart_port * port )
220
220
{
221
221
return in_be16 (& PSC (port )-> mpc52xx_psc_isr )
222
222
& port -> read_status_mask
223
223
& MPC52xx_PSC_IMR_RXRDY ;
224
224
}
225
225
226
- static int mpc52xx_psc_tx_rdy (struct uart_port * port )
226
+ static unsigned int mpc52xx_psc_tx_rdy (struct uart_port * port )
227
227
{
228
228
return in_be16 (& PSC (port )-> mpc52xx_psc_isr )
229
229
& port -> read_status_mask
230
230
& MPC52xx_PSC_IMR_TXRDY ;
231
231
}
232
232
233
- static int mpc52xx_psc_tx_empty (struct uart_port * port )
233
+ static unsigned int mpc52xx_psc_tx_empty (struct uart_port * port )
234
234
{
235
235
u16 sts = in_be16 (& PSC (port )-> mpc52xx_psc_status );
236
236
@@ -1365,7 +1365,7 @@ static const struct uart_ops mpc52xx_uart_ops = {
1365
1365
/* Interrupt handling */
1366
1366
/* ======================================================================== */
1367
1367
1368
- static inline int
1368
+ static inline unsigned int
1369
1369
mpc52xx_uart_int_rx_chars (struct uart_port * port )
1370
1370
{
1371
1371
struct tty_port * tport = & port -> state -> port ;
0 commit comments