@@ -33,7 +33,7 @@ static void mp_tasklet_action(unsigned long data);
33
33
static inline void mp_update_mctrl (struct sb_uart_port * port , unsigned int set , unsigned int clear );
34
34
static int mp_startup (struct sb_uart_state * state , int init_hw );
35
35
static void mp_shutdown (struct sb_uart_state * state );
36
- static void mp_change_speed (struct sb_uart_state * state , struct MP_TERMIOS * old_termios );
36
+ static void mp_change_speed (struct sb_uart_state * state , const struct MP_TERMIOS * old_termios );
37
37
38
38
static inline int __mp_put_char (struct sb_uart_port * port , struct circ_buf * circ , unsigned char c );
39
39
static int mp_put_char (struct tty_struct * tty , unsigned char ch );
@@ -57,7 +57,7 @@ static int mp_do_autoconfig(struct sb_uart_state *state);
57
57
static int mp_wait_modem_status (struct sb_uart_state * state , unsigned long arg );
58
58
static int mp_get_count (struct sb_uart_state * state , struct serial_icounter_struct * icnt );
59
59
static int mp_ioctl (struct tty_struct * tty , unsigned int cmd , unsigned long arg );
60
- static void mp_set_termios (struct tty_struct * tty , struct MP_TERMIOS * old_termios );
60
+ static void mp_set_termios (struct tty_struct * tty , const struct MP_TERMIOS * old_termios );
61
61
static void mp_close (struct tty_struct * tty , struct file * filp );
62
62
static void mp_wait_until_sent (struct tty_struct * tty , int timeout );
63
63
static void mp_hangup (struct tty_struct * tty );
@@ -96,7 +96,7 @@ static void multi_break_ctl(struct sb_uart_port *port, int break_state);
96
96
static int multi_startup (struct sb_uart_port * port );
97
97
static void multi_shutdown (struct sb_uart_port * port );
98
98
static unsigned int multi_get_divisor (struct sb_uart_port * port , unsigned int baud );
99
- static void multi_set_termios (struct sb_uart_port * port , struct MP_TERMIOS * termios , struct MP_TERMIOS * old );
99
+ static void multi_set_termios (struct sb_uart_port * port , struct MP_TERMIOS * termios , const struct MP_TERMIOS * old );
100
100
static void multi_pm (struct sb_uart_port * port , unsigned int state , unsigned int oldstate );
101
101
static void multi_release_std_resource (struct mp_port * mtpt );
102
102
static void multi_release_port (struct sb_uart_port * port );
@@ -586,7 +586,7 @@ static void mp_shutdown(struct sb_uart_state *state)
586
586
}
587
587
}
588
588
589
- static void mp_change_speed (struct sb_uart_state * state , struct MP_TERMIOS * old_termios )
589
+ static void mp_change_speed (struct sb_uart_state * state , const struct MP_TERMIOS * old_termios )
590
590
{
591
591
struct tty_struct * tty = state -> info -> tty ;
592
592
struct sb_uart_port * port = state -> port ;
@@ -1264,7 +1264,7 @@ static int mp_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg)
1264
1264
return ret ;
1265
1265
}
1266
1266
1267
- static void mp_set_termios (struct tty_struct * tty , struct MP_TERMIOS * old_termios )
1267
+ static void mp_set_termios (struct tty_struct * tty , const struct MP_TERMIOS * old_termios )
1268
1268
{
1269
1269
struct sb_uart_state * state = tty -> driver_data ;
1270
1270
unsigned long flags ;
@@ -2510,7 +2510,7 @@ static unsigned int multi_get_divisor(struct sb_uart_port *port, unsigned int ba
2510
2510
2511
2511
2512
2512
2513
- static void multi_set_termios (struct sb_uart_port * port , struct MP_TERMIOS * termios , struct MP_TERMIOS * old )
2513
+ static void multi_set_termios (struct sb_uart_port * port , struct MP_TERMIOS * termios , const struct MP_TERMIOS * old )
2514
2514
{
2515
2515
struct mp_port * mtpt = (struct mp_port * )port ;
2516
2516
unsigned char cval , fcr = 0 ;
0 commit comments