diff options
Diffstat (limited to 'drivers/usb')
28 files changed, 62 insertions, 62 deletions
diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c index 7f1fa956dcdb..98199628e394 100644 --- a/drivers/usb/class/cdc-acm.c +++ b/drivers/usb/class/cdc-acm.c | |||
@@ -677,10 +677,10 @@ static const __u8 acm_tty_size[] = { | |||
677 | 5, 6, 7, 8 | 677 | 5, 6, 7, 8 |
678 | }; | 678 | }; |
679 | 679 | ||
680 | static void acm_tty_set_termios(struct tty_struct *tty, struct termios *termios_old) | 680 | static void acm_tty_set_termios(struct tty_struct *tty, struct ktermios *termios_old) |
681 | { | 681 | { |
682 | struct acm *acm = tty->driver_data; | 682 | struct acm *acm = tty->driver_data; |
683 | struct termios *termios = tty->termios; | 683 | struct ktermios *termios = tty->termios; |
684 | struct usb_cdc_line_coding newline; | 684 | struct usb_cdc_line_coding newline; |
685 | int newctrl = acm->ctrlout; | 685 | int newctrl = acm->ctrlout; |
686 | 686 | ||
diff --git a/drivers/usb/gadget/serial.c b/drivers/usb/gadget/serial.c index 208e55a667ac..5516c59ed5ec 100644 --- a/drivers/usb/gadget/serial.c +++ b/drivers/usb/gadget/serial.c | |||
@@ -200,7 +200,7 @@ static void gs_unthrottle(struct tty_struct * tty); | |||
200 | static void gs_break(struct tty_struct *tty, int break_state); | 200 | static void gs_break(struct tty_struct *tty, int break_state); |
201 | static int gs_ioctl(struct tty_struct *tty, struct file *file, | 201 | static int gs_ioctl(struct tty_struct *tty, struct file *file, |
202 | unsigned int cmd, unsigned long arg); | 202 | unsigned int cmd, unsigned long arg); |
203 | static void gs_set_termios(struct tty_struct *tty, struct termios *old); | 203 | static void gs_set_termios(struct tty_struct *tty, struct ktermios *old); |
204 | 204 | ||
205 | static int gs_send(struct gs_dev *dev); | 205 | static int gs_send(struct gs_dev *dev); |
206 | static int gs_send_packet(struct gs_dev *dev, char *packet, | 206 | static int gs_send_packet(struct gs_dev *dev, char *packet, |
@@ -1077,7 +1077,7 @@ static int gs_ioctl(struct tty_struct *tty, struct file *file, unsigned int cmd, | |||
1077 | /* | 1077 | /* |
1078 | * gs_set_termios | 1078 | * gs_set_termios |
1079 | */ | 1079 | */ |
1080 | static void gs_set_termios(struct tty_struct *tty, struct termios *old) | 1080 | static void gs_set_termios(struct tty_struct *tty, struct ktermios *old) |
1081 | { | 1081 | { |
1082 | } | 1082 | } |
1083 | 1083 | ||
diff --git a/drivers/usb/serial/ark3116.c b/drivers/usb/serial/ark3116.c index 863966c1c5ac..5261cd22ee6b 100644 --- a/drivers/usb/serial/ark3116.c +++ b/drivers/usb/serial/ark3116.c | |||
@@ -156,7 +156,7 @@ cleanup: | |||
156 | } | 156 | } |
157 | 157 | ||
158 | static void ark3116_set_termios(struct usb_serial_port *port, | 158 | static void ark3116_set_termios(struct usb_serial_port *port, |
159 | struct termios *old_termios) | 159 | struct ktermios *old_termios) |
160 | { | 160 | { |
161 | struct usb_serial *serial = port->serial; | 161 | struct usb_serial *serial = port->serial; |
162 | struct ark3116_private *priv = usb_get_serial_port_data(port); | 162 | struct ark3116_private *priv = usb_get_serial_port_data(port); |
@@ -326,7 +326,7 @@ static void ark3116_set_termios(struct usb_serial_port *port, | |||
326 | 326 | ||
327 | static int ark3116_open(struct usb_serial_port *port, struct file *filp) | 327 | static int ark3116_open(struct usb_serial_port *port, struct file *filp) |
328 | { | 328 | { |
329 | struct termios tmp_termios; | 329 | struct ktermios tmp_termios; |
330 | struct usb_serial *serial = port->serial; | 330 | struct usb_serial *serial = port->serial; |
331 | char *buf; | 331 | char *buf; |
332 | int result = 0; | 332 | int result = 0; |
diff --git a/drivers/usb/serial/belkin_sa.c b/drivers/usb/serial/belkin_sa.c index 8835bb58ca9b..38b4dae319ee 100644 --- a/drivers/usb/serial/belkin_sa.c +++ b/drivers/usb/serial/belkin_sa.c | |||
@@ -92,7 +92,7 @@ static void belkin_sa_shutdown (struct usb_serial *serial); | |||
92 | static int belkin_sa_open (struct usb_serial_port *port, struct file *filp); | 92 | static int belkin_sa_open (struct usb_serial_port *port, struct file *filp); |
93 | static void belkin_sa_close (struct usb_serial_port *port, struct file *filp); | 93 | static void belkin_sa_close (struct usb_serial_port *port, struct file *filp); |
94 | static void belkin_sa_read_int_callback (struct urb *urb); | 94 | static void belkin_sa_read_int_callback (struct urb *urb); |
95 | static void belkin_sa_set_termios (struct usb_serial_port *port, struct termios * old); | 95 | static void belkin_sa_set_termios (struct usb_serial_port *port, struct ktermios * old); |
96 | static int belkin_sa_ioctl (struct usb_serial_port *port, struct file * file, unsigned int cmd, unsigned long arg); | 96 | static int belkin_sa_ioctl (struct usb_serial_port *port, struct file * file, unsigned int cmd, unsigned long arg); |
97 | static void belkin_sa_break_ctl (struct usb_serial_port *port, int break_state ); | 97 | static void belkin_sa_break_ctl (struct usb_serial_port *port, int break_state ); |
98 | static int belkin_sa_tiocmget (struct usb_serial_port *port, struct file *file); | 98 | static int belkin_sa_tiocmget (struct usb_serial_port *port, struct file *file); |
@@ -333,7 +333,7 @@ exit: | |||
333 | __FUNCTION__, retval); | 333 | __FUNCTION__, retval); |
334 | } | 334 | } |
335 | 335 | ||
336 | static void belkin_sa_set_termios (struct usb_serial_port *port, struct termios *old_termios) | 336 | static void belkin_sa_set_termios (struct usb_serial_port *port, struct ktermios *old_termios) |
337 | { | 337 | { |
338 | struct usb_serial *serial = port->serial; | 338 | struct usb_serial *serial = port->serial; |
339 | struct belkin_sa_private *priv = usb_get_serial_port_data(port); | 339 | struct belkin_sa_private *priv = usb_get_serial_port_data(port); |
diff --git a/drivers/usb/serial/console.c b/drivers/usb/serial/console.c index 7167728d764c..9386e216d681 100644 --- a/drivers/usb/serial/console.c +++ b/drivers/usb/serial/console.c | |||
@@ -65,7 +65,7 @@ static int usb_console_setup(struct console *co, char *options) | |||
65 | struct usb_serial_port *port; | 65 | struct usb_serial_port *port; |
66 | int retval = 0; | 66 | int retval = 0; |
67 | struct tty_struct *tty; | 67 | struct tty_struct *tty; |
68 | struct termios *termios; | 68 | struct ktermios *termios; |
69 | 69 | ||
70 | dbg ("%s", __FUNCTION__); | 70 | dbg ("%s", __FUNCTION__); |
71 | 71 | ||
diff --git a/drivers/usb/serial/cp2101.c b/drivers/usb/serial/cp2101.c index f95d42c0d16a..2f9b7ac32663 100644 --- a/drivers/usb/serial/cp2101.c +++ b/drivers/usb/serial/cp2101.c | |||
@@ -41,7 +41,7 @@ static int cp2101_open(struct usb_serial_port*, struct file*); | |||
41 | static void cp2101_cleanup(struct usb_serial_port*); | 41 | static void cp2101_cleanup(struct usb_serial_port*); |
42 | static void cp2101_close(struct usb_serial_port*, struct file*); | 42 | static void cp2101_close(struct usb_serial_port*, struct file*); |
43 | static void cp2101_get_termios(struct usb_serial_port*); | 43 | static void cp2101_get_termios(struct usb_serial_port*); |
44 | static void cp2101_set_termios(struct usb_serial_port*, struct termios*); | 44 | static void cp2101_set_termios(struct usb_serial_port*, struct ktermios*); |
45 | static int cp2101_tiocmget (struct usb_serial_port *, struct file *); | 45 | static int cp2101_tiocmget (struct usb_serial_port *, struct file *); |
46 | static int cp2101_tiocmset (struct usb_serial_port *, struct file *, | 46 | static int cp2101_tiocmset (struct usb_serial_port *, struct file *, |
47 | unsigned int, unsigned int); | 47 | unsigned int, unsigned int); |
@@ -506,7 +506,7 @@ static void cp2101_get_termios (struct usb_serial_port *port) | |||
506 | } | 506 | } |
507 | 507 | ||
508 | static void cp2101_set_termios (struct usb_serial_port *port, | 508 | static void cp2101_set_termios (struct usb_serial_port *port, |
509 | struct termios *old_termios) | 509 | struct ktermios *old_termios) |
510 | { | 510 | { |
511 | unsigned int cflag, old_cflag=0; | 511 | unsigned int cflag, old_cflag=0; |
512 | int baud=0, bits; | 512 | int baud=0, bits; |
diff --git a/drivers/usb/serial/cypress_m8.c b/drivers/usb/serial/cypress_m8.c index 093f303b3189..a1fdb85b8c0a 100644 --- a/drivers/usb/serial/cypress_m8.c +++ b/drivers/usb/serial/cypress_m8.c | |||
@@ -143,7 +143,7 @@ struct cypress_private { | |||
143 | wait_queue_head_t delta_msr_wait; /* used for TIOCMIWAIT */ | 143 | wait_queue_head_t delta_msr_wait; /* used for TIOCMIWAIT */ |
144 | char prev_status, diff_status; /* used for TIOCMIWAIT */ | 144 | char prev_status, diff_status; /* used for TIOCMIWAIT */ |
145 | /* we pass a pointer to this as the arguement sent to cypress_set_termios old_termios */ | 145 | /* we pass a pointer to this as the arguement sent to cypress_set_termios old_termios */ |
146 | struct termios tmp_termios; /* stores the old termios settings */ | 146 | struct ktermios tmp_termios; /* stores the old termios settings */ |
147 | }; | 147 | }; |
148 | 148 | ||
149 | /* write buffer structure */ | 149 | /* write buffer structure */ |
@@ -165,7 +165,7 @@ static int cypress_write (struct usb_serial_port *port, const unsigned char *b | |||
165 | static void cypress_send (struct usb_serial_port *port); | 165 | static void cypress_send (struct usb_serial_port *port); |
166 | static int cypress_write_room (struct usb_serial_port *port); | 166 | static int cypress_write_room (struct usb_serial_port *port); |
167 | static int cypress_ioctl (struct usb_serial_port *port, struct file * file, unsigned int cmd, unsigned long arg); | 167 | static int cypress_ioctl (struct usb_serial_port *port, struct file * file, unsigned int cmd, unsigned long arg); |
168 | static void cypress_set_termios (struct usb_serial_port *port, struct termios * old); | 168 | static void cypress_set_termios (struct usb_serial_port *port, struct ktermios * old); |
169 | static int cypress_tiocmget (struct usb_serial_port *port, struct file *file); | 169 | static int cypress_tiocmget (struct usb_serial_port *port, struct file *file); |
170 | static int cypress_tiocmset (struct usb_serial_port *port, struct file *file, unsigned int set, unsigned int clear); | 170 | static int cypress_tiocmset (struct usb_serial_port *port, struct file *file, unsigned int set, unsigned int clear); |
171 | static int cypress_chars_in_buffer (struct usb_serial_port *port); | 171 | static int cypress_chars_in_buffer (struct usb_serial_port *port); |
@@ -949,13 +949,13 @@ static int cypress_ioctl (struct usb_serial_port *port, struct file * file, unsi | |||
949 | 949 | ||
950 | switch (cmd) { | 950 | switch (cmd) { |
951 | case TIOCGSERIAL: | 951 | case TIOCGSERIAL: |
952 | if (copy_to_user((void __user *)arg, port->tty->termios, sizeof(struct termios))) { | 952 | if (copy_to_user((void __user *)arg, port->tty->termios, sizeof(struct ktermios))) { |
953 | return -EFAULT; | 953 | return -EFAULT; |
954 | } | 954 | } |
955 | return (0); | 955 | return (0); |
956 | break; | 956 | break; |
957 | case TIOCSSERIAL: | 957 | case TIOCSSERIAL: |
958 | if (copy_from_user(port->tty->termios, (void __user *)arg, sizeof(struct termios))) { | 958 | if (copy_from_user(port->tty->termios, (void __user *)arg, sizeof(struct ktermios))) { |
959 | return -EFAULT; | 959 | return -EFAULT; |
960 | } | 960 | } |
961 | /* here we need to call cypress_set_termios to invoke the new settings */ | 961 | /* here we need to call cypress_set_termios to invoke the new settings */ |
@@ -1019,7 +1019,7 @@ static int cypress_ioctl (struct usb_serial_port *port, struct file * file, unsi | |||
1019 | 1019 | ||
1020 | 1020 | ||
1021 | static void cypress_set_termios (struct usb_serial_port *port, | 1021 | static void cypress_set_termios (struct usb_serial_port *port, |
1022 | struct termios *old_termios) | 1022 | struct ktermios *old_termios) |
1023 | { | 1023 | { |
1024 | struct cypress_private *priv = usb_get_serial_port_data(port); | 1024 | struct cypress_private *priv = usb_get_serial_port_data(port); |
1025 | struct tty_struct *tty; | 1025 | struct tty_struct *tty; |
diff --git a/drivers/usb/serial/digi_acceleport.c b/drivers/usb/serial/digi_acceleport.c index 83d0e21145b0..9d9ea874639c 100644 --- a/drivers/usb/serial/digi_acceleport.c +++ b/drivers/usb/serial/digi_acceleport.c | |||
@@ -449,7 +449,7 @@ static int digi_transmit_idle( struct usb_serial_port *port, | |||
449 | static void digi_rx_throttle (struct usb_serial_port *port); | 449 | static void digi_rx_throttle (struct usb_serial_port *port); |
450 | static void digi_rx_unthrottle (struct usb_serial_port *port); | 450 | static void digi_rx_unthrottle (struct usb_serial_port *port); |
451 | static void digi_set_termios( struct usb_serial_port *port, | 451 | static void digi_set_termios( struct usb_serial_port *port, |
452 | struct termios *old_termios ); | 452 | struct ktermios *old_termios ); |
453 | static void digi_break_ctl( struct usb_serial_port *port, int break_state ); | 453 | static void digi_break_ctl( struct usb_serial_port *port, int break_state ); |
454 | static int digi_ioctl( struct usb_serial_port *port, struct file *file, | 454 | static int digi_ioctl( struct usb_serial_port *port, struct file *file, |
455 | unsigned int cmd, unsigned long arg ); | 455 | unsigned int cmd, unsigned long arg ); |
@@ -976,7 +976,7 @@ dbg( "digi_rx_unthrottle: TOP: port=%d", priv->dp_port_num ); | |||
976 | 976 | ||
977 | 977 | ||
978 | static void digi_set_termios( struct usb_serial_port *port, | 978 | static void digi_set_termios( struct usb_serial_port *port, |
979 | struct termios *old_termios ) | 979 | struct ktermios *old_termios ) |
980 | { | 980 | { |
981 | 981 | ||
982 | struct digi_port *priv = usb_get_serial_port_data(port); | 982 | struct digi_port *priv = usb_get_serial_port_data(port); |
@@ -1463,7 +1463,7 @@ static int digi_open( struct usb_serial_port *port, struct file *filp ) | |||
1463 | int ret; | 1463 | int ret; |
1464 | unsigned char buf[32]; | 1464 | unsigned char buf[32]; |
1465 | struct digi_port *priv = usb_get_serial_port_data(port); | 1465 | struct digi_port *priv = usb_get_serial_port_data(port); |
1466 | struct termios not_termios; | 1466 | struct ktermios not_termios; |
1467 | unsigned long flags = 0; | 1467 | unsigned long flags = 0; |
1468 | 1468 | ||
1469 | 1469 | ||
diff --git a/drivers/usb/serial/empeg.c b/drivers/usb/serial/empeg.c index 4ce10a831953..92beeb19795f 100644 --- a/drivers/usb/serial/empeg.c +++ b/drivers/usb/serial/empeg.c | |||
@@ -92,7 +92,7 @@ static int empeg_ioctl (struct usb_serial_port *port, | |||
92 | struct file * file, | 92 | struct file * file, |
93 | unsigned int cmd, | 93 | unsigned int cmd, |
94 | unsigned long arg); | 94 | unsigned long arg); |
95 | static void empeg_set_termios (struct usb_serial_port *port, struct termios *old_termios); | 95 | static void empeg_set_termios (struct usb_serial_port *port, struct ktermios *old_termios); |
96 | static void empeg_write_bulk_callback (struct urb *urb); | 96 | static void empeg_write_bulk_callback (struct urb *urb); |
97 | static void empeg_read_bulk_callback (struct urb *urb); | 97 | static void empeg_read_bulk_callback (struct urb *urb); |
98 | 98 | ||
@@ -442,7 +442,7 @@ static int empeg_ioctl (struct usb_serial_port *port, struct file * file, unsign | |||
442 | } | 442 | } |
443 | 443 | ||
444 | 444 | ||
445 | static void empeg_set_termios (struct usb_serial_port *port, struct termios *old_termios) | 445 | static void empeg_set_termios (struct usb_serial_port *port, struct ktermios *old_termios) |
446 | { | 446 | { |
447 | 447 | ||
448 | dbg("%s - port %d", __FUNCTION__, port->number); | 448 | dbg("%s - port %d", __FUNCTION__, port->number); |
diff --git a/drivers/usb/serial/ftdi_sio.c b/drivers/usb/serial/ftdi_sio.c index 72e4d48f51e9..41b0ad2d56ac 100644 --- a/drivers/usb/serial/ftdi_sio.c +++ b/drivers/usb/serial/ftdi_sio.c | |||
@@ -595,7 +595,7 @@ static int ftdi_chars_in_buffer (struct usb_serial_port *port); | |||
595 | static void ftdi_write_bulk_callback (struct urb *urb); | 595 | static void ftdi_write_bulk_callback (struct urb *urb); |
596 | static void ftdi_read_bulk_callback (struct urb *urb); | 596 | static void ftdi_read_bulk_callback (struct urb *urb); |
597 | static void ftdi_process_read (struct work_struct *work); | 597 | static void ftdi_process_read (struct work_struct *work); |
598 | static void ftdi_set_termios (struct usb_serial_port *port, struct termios * old); | 598 | static void ftdi_set_termios (struct usb_serial_port *port, struct ktermios * old); |
599 | static int ftdi_tiocmget (struct usb_serial_port *port, struct file *file); | 599 | static int ftdi_tiocmget (struct usb_serial_port *port, struct file *file); |
600 | static int ftdi_tiocmset (struct usb_serial_port *port, struct file * file, unsigned int set, unsigned int clear); | 600 | static int ftdi_tiocmset (struct usb_serial_port *port, struct file * file, unsigned int set, unsigned int clear); |
601 | static int ftdi_ioctl (struct usb_serial_port *port, struct file * file, unsigned int cmd, unsigned long arg); | 601 | static int ftdi_ioctl (struct usb_serial_port *port, struct file * file, unsigned int cmd, unsigned long arg); |
@@ -1880,7 +1880,7 @@ static void ftdi_break_ctl( struct usb_serial_port *port, int break_state ) | |||
1880 | * WARNING: set_termios calls this with old_termios in kernel space | 1880 | * WARNING: set_termios calls this with old_termios in kernel space |
1881 | */ | 1881 | */ |
1882 | 1882 | ||
1883 | static void ftdi_set_termios (struct usb_serial_port *port, struct termios *old_termios) | 1883 | static void ftdi_set_termios (struct usb_serial_port *port, struct ktermios *old_termios) |
1884 | { /* ftdi_termios */ | 1884 | { /* ftdi_termios */ |
1885 | struct usb_device *dev = port->serial->dev; | 1885 | struct usb_device *dev = port->serial->dev; |
1886 | unsigned int cflag = port->tty->termios->c_cflag; | 1886 | unsigned int cflag = port->tty->termios->c_cflag; |
diff --git a/drivers/usb/serial/io_edgeport.c b/drivers/usb/serial/io_edgeport.c index d06547a13f28..f623d58370a4 100644 --- a/drivers/usb/serial/io_edgeport.c +++ b/drivers/usb/serial/io_edgeport.c | |||
@@ -229,7 +229,7 @@ static int edge_write_room (struct usb_serial_port *port); | |||
229 | static int edge_chars_in_buffer (struct usb_serial_port *port); | 229 | static int edge_chars_in_buffer (struct usb_serial_port *port); |
230 | static void edge_throttle (struct usb_serial_port *port); | 230 | static void edge_throttle (struct usb_serial_port *port); |
231 | static void edge_unthrottle (struct usb_serial_port *port); | 231 | static void edge_unthrottle (struct usb_serial_port *port); |
232 | static void edge_set_termios (struct usb_serial_port *port, struct termios *old_termios); | 232 | static void edge_set_termios (struct usb_serial_port *port, struct ktermios *old_termios); |
233 | static int edge_ioctl (struct usb_serial_port *port, struct file *file, unsigned int cmd, unsigned long arg); | 233 | static int edge_ioctl (struct usb_serial_port *port, struct file *file, unsigned int cmd, unsigned long arg); |
234 | static void edge_break (struct usb_serial_port *port, int break_state); | 234 | static void edge_break (struct usb_serial_port *port, int break_state); |
235 | static int edge_tiocmget (struct usb_serial_port *port, struct file *file); | 235 | static int edge_tiocmget (struct usb_serial_port *port, struct file *file); |
@@ -257,7 +257,7 @@ static void handle_new_lsr (struct edgeport_port *edge_port, __u8 lsrData, __u8 | |||
257 | static int send_iosp_ext_cmd (struct edgeport_port *edge_port, __u8 command, __u8 param); | 257 | static int send_iosp_ext_cmd (struct edgeport_port *edge_port, __u8 command, __u8 param); |
258 | static int calc_baud_rate_divisor (int baud_rate, int *divisor); | 258 | static int calc_baud_rate_divisor (int baud_rate, int *divisor); |
259 | static int send_cmd_write_baud_rate (struct edgeport_port *edge_port, int baudRate); | 259 | static int send_cmd_write_baud_rate (struct edgeport_port *edge_port, int baudRate); |
260 | static void change_port_settings (struct edgeport_port *edge_port, struct termios *old_termios); | 260 | static void change_port_settings (struct edgeport_port *edge_port, struct ktermios *old_termios); |
261 | static int send_cmd_write_uart_register (struct edgeport_port *edge_port, __u8 regNum, __u8 regValue); | 261 | static int send_cmd_write_uart_register (struct edgeport_port *edge_port, __u8 regNum, __u8 regValue); |
262 | static int write_cmd_usb (struct edgeport_port *edge_port, unsigned char *buffer, int writeLength); | 262 | static int write_cmd_usb (struct edgeport_port *edge_port, unsigned char *buffer, int writeLength); |
263 | static void send_more_port_data (struct edgeport_serial *edge_serial, struct edgeport_port *edge_port); | 263 | static void send_more_port_data (struct edgeport_serial *edge_serial, struct edgeport_port *edge_port); |
@@ -1431,7 +1431,7 @@ static void edge_unthrottle (struct usb_serial_port *port) | |||
1431 | * SerialSetTermios | 1431 | * SerialSetTermios |
1432 | * this function is called by the tty driver when it wants to change the termios structure | 1432 | * this function is called by the tty driver when it wants to change the termios structure |
1433 | *****************************************************************************/ | 1433 | *****************************************************************************/ |
1434 | static void edge_set_termios (struct usb_serial_port *port, struct termios *old_termios) | 1434 | static void edge_set_termios (struct usb_serial_port *port, struct ktermios *old_termios) |
1435 | { | 1435 | { |
1436 | struct edgeport_port *edge_port = usb_get_serial_port_data(port); | 1436 | struct edgeport_port *edge_port = usb_get_serial_port_data(port); |
1437 | struct tty_struct *tty = port->tty; | 1437 | struct tty_struct *tty = port->tty; |
@@ -2412,7 +2412,7 @@ static int send_cmd_write_uart_register (struct edgeport_port *edge_port, __u8 r | |||
2412 | #ifndef CMSPAR | 2412 | #ifndef CMSPAR |
2413 | #define CMSPAR 0 | 2413 | #define CMSPAR 0 |
2414 | #endif | 2414 | #endif |
2415 | static void change_port_settings (struct edgeport_port *edge_port, struct termios *old_termios) | 2415 | static void change_port_settings (struct edgeport_port *edge_port, struct ktermios *old_termios) |
2416 | { | 2416 | { |
2417 | struct tty_struct *tty; | 2417 | struct tty_struct *tty; |
2418 | int baud; | 2418 | int baud; |
diff --git a/drivers/usb/serial/io_ti.c b/drivers/usb/serial/io_ti.c index ee0c921e1520..2da2684e0809 100644 --- a/drivers/usb/serial/io_ti.c +++ b/drivers/usb/serial/io_ti.c | |||
@@ -238,7 +238,7 @@ static void edge_tty_recv(struct device *dev, struct tty_struct *tty, unsigned c | |||
238 | static void stop_read(struct edgeport_port *edge_port); | 238 | static void stop_read(struct edgeport_port *edge_port); |
239 | static int restart_read(struct edgeport_port *edge_port); | 239 | static int restart_read(struct edgeport_port *edge_port); |
240 | 240 | ||
241 | static void edge_set_termios (struct usb_serial_port *port, struct termios *old_termios); | 241 | static void edge_set_termios (struct usb_serial_port *port, struct ktermios *old_termios); |
242 | static void edge_send(struct usb_serial_port *port); | 242 | static void edge_send(struct usb_serial_port *port); |
243 | 243 | ||
244 | /* circular buffer */ | 244 | /* circular buffer */ |
@@ -2361,7 +2361,7 @@ static int restart_read(struct edgeport_port *edge_port) | |||
2361 | return status; | 2361 | return status; |
2362 | } | 2362 | } |
2363 | 2363 | ||
2364 | static void change_port_settings (struct edgeport_port *edge_port, struct termios *old_termios) | 2364 | static void change_port_settings (struct edgeport_port *edge_port, struct ktermios *old_termios) |
2365 | { | 2365 | { |
2366 | struct ump_uart_config *config; | 2366 | struct ump_uart_config *config; |
2367 | struct tty_struct *tty; | 2367 | struct tty_struct *tty; |
@@ -2512,7 +2512,7 @@ static void change_port_settings (struct edgeport_port *edge_port, struct termio | |||
2512 | return; | 2512 | return; |
2513 | } | 2513 | } |
2514 | 2514 | ||
2515 | static void edge_set_termios (struct usb_serial_port *port, struct termios *old_termios) | 2515 | static void edge_set_termios (struct usb_serial_port *port, struct ktermios *old_termios) |
2516 | { | 2516 | { |
2517 | struct edgeport_port *edge_port = usb_get_serial_port_data(port); | 2517 | struct edgeport_port *edge_port = usb_get_serial_port_data(port); |
2518 | struct tty_struct *tty = port->tty; | 2518 | struct tty_struct *tty = port->tty; |
diff --git a/drivers/usb/serial/ir-usb.c b/drivers/usb/serial/ir-usb.c index 331bf81556fc..8fdf486e3465 100644 --- a/drivers/usb/serial/ir-usb.c +++ b/drivers/usb/serial/ir-usb.c | |||
@@ -107,7 +107,7 @@ static void ir_close (struct usb_serial_port *port, struct file *filep); | |||
107 | static int ir_write (struct usb_serial_port *port, const unsigned char *buf, int count); | 107 | static int ir_write (struct usb_serial_port *port, const unsigned char *buf, int count); |
108 | static void ir_write_bulk_callback (struct urb *urb); | 108 | static void ir_write_bulk_callback (struct urb *urb); |
109 | static void ir_read_bulk_callback (struct urb *urb); | 109 | static void ir_read_bulk_callback (struct urb *urb); |
110 | static void ir_set_termios (struct usb_serial_port *port, struct termios *old_termios); | 110 | static void ir_set_termios (struct usb_serial_port *port, struct ktermios *old_termios); |
111 | 111 | ||
112 | static u8 ir_baud = 0; | 112 | static u8 ir_baud = 0; |
113 | static u8 ir_xbof = 0; | 113 | static u8 ir_xbof = 0; |
@@ -497,7 +497,7 @@ static void ir_read_bulk_callback (struct urb *urb) | |||
497 | return; | 497 | return; |
498 | } | 498 | } |
499 | 499 | ||
500 | static void ir_set_termios (struct usb_serial_port *port, struct termios *old_termios) | 500 | static void ir_set_termios (struct usb_serial_port *port, struct ktermios *old_termios) |
501 | { | 501 | { |
502 | unsigned char *transfer_buffer; | 502 | unsigned char *transfer_buffer; |
503 | unsigned int cflag; | 503 | unsigned int cflag; |
diff --git a/drivers/usb/serial/keyspan.c b/drivers/usb/serial/keyspan.c index 7639652cec42..9d2fdfd6865f 100644 --- a/drivers/usb/serial/keyspan.c +++ b/drivers/usb/serial/keyspan.c | |||
@@ -264,7 +264,7 @@ static void keyspan_break_ctl (struct usb_serial_port *port, int break_state) | |||
264 | 264 | ||
265 | 265 | ||
266 | static void keyspan_set_termios (struct usb_serial_port *port, | 266 | static void keyspan_set_termios (struct usb_serial_port *port, |
267 | struct termios *old_termios) | 267 | struct ktermios *old_termios) |
268 | { | 268 | { |
269 | int baud_rate, device_port; | 269 | int baud_rate, device_port; |
270 | struct keyspan_port_private *p_priv; | 270 | struct keyspan_port_private *p_priv; |
diff --git a/drivers/usb/serial/keyspan.h b/drivers/usb/serial/keyspan.h index 7472ed6bf626..6413d73c139c 100644 --- a/drivers/usb/serial/keyspan.h +++ b/drivers/usb/serial/keyspan.h | |||
@@ -59,7 +59,7 @@ static int keyspan_ioctl (struct usb_serial_port *port, | |||
59 | unsigned int cmd, | 59 | unsigned int cmd, |
60 | unsigned long arg); | 60 | unsigned long arg); |
61 | static void keyspan_set_termios (struct usb_serial_port *port, | 61 | static void keyspan_set_termios (struct usb_serial_port *port, |
62 | struct termios *old); | 62 | struct ktermios *old); |
63 | static void keyspan_break_ctl (struct usb_serial_port *port, | 63 | static void keyspan_break_ctl (struct usb_serial_port *port, |
64 | int break_state); | 64 | int break_state); |
65 | static int keyspan_tiocmget (struct usb_serial_port *port, | 65 | static int keyspan_tiocmget (struct usb_serial_port *port, |
diff --git a/drivers/usb/serial/keyspan_pda.c b/drivers/usb/serial/keyspan_pda.c index e09a0bfe6231..126b9703bbaf 100644 --- a/drivers/usb/serial/keyspan_pda.c +++ b/drivers/usb/serial/keyspan_pda.c | |||
@@ -365,7 +365,7 @@ static void keyspan_pda_break_ctl (struct usb_serial_port *port, int break_state | |||
365 | 365 | ||
366 | 366 | ||
367 | static void keyspan_pda_set_termios (struct usb_serial_port *port, | 367 | static void keyspan_pda_set_termios (struct usb_serial_port *port, |
368 | struct termios *old_termios) | 368 | struct ktermios *old_termios) |
369 | { | 369 | { |
370 | struct usb_serial *serial = port->serial; | 370 | struct usb_serial *serial = port->serial; |
371 | unsigned int cflag = port->tty->termios->c_cflag; | 371 | unsigned int cflag = port->tty->termios->c_cflag; |
diff --git a/drivers/usb/serial/kl5kusb105.c b/drivers/usb/serial/kl5kusb105.c index 17e205699c2b..73d755df4840 100644 --- a/drivers/usb/serial/kl5kusb105.c +++ b/drivers/usb/serial/kl5kusb105.c | |||
@@ -86,7 +86,7 @@ static int klsi_105_write_room (struct usb_serial_port *port); | |||
86 | 86 | ||
87 | static void klsi_105_read_bulk_callback (struct urb *urb); | 87 | static void klsi_105_read_bulk_callback (struct urb *urb); |
88 | static void klsi_105_set_termios (struct usb_serial_port *port, | 88 | static void klsi_105_set_termios (struct usb_serial_port *port, |
89 | struct termios * old); | 89 | struct ktermios *old); |
90 | static int klsi_105_ioctl (struct usb_serial_port *port, | 90 | static int klsi_105_ioctl (struct usb_serial_port *port, |
91 | struct file * file, | 91 | struct file * file, |
92 | unsigned int cmd, | 92 | unsigned int cmd, |
@@ -164,7 +164,7 @@ struct klsi_105_port_settings { | |||
164 | #define URB_TRANSFER_BUFFER_SIZE 64 | 164 | #define URB_TRANSFER_BUFFER_SIZE 64 |
165 | struct klsi_105_private { | 165 | struct klsi_105_private { |
166 | struct klsi_105_port_settings cfg; | 166 | struct klsi_105_port_settings cfg; |
167 | struct termios termios; | 167 | struct ktermios termios; |
168 | unsigned long line_state; /* modem line settings */ | 168 | unsigned long line_state; /* modem line settings */ |
169 | /* write pool */ | 169 | /* write pool */ |
170 | struct urb * write_urb_pool[NUM_URBS]; | 170 | struct urb * write_urb_pool[NUM_URBS]; |
@@ -688,7 +688,7 @@ static void klsi_105_read_bulk_callback (struct urb *urb) | |||
688 | 688 | ||
689 | 689 | ||
690 | static void klsi_105_set_termios (struct usb_serial_port *port, | 690 | static void klsi_105_set_termios (struct usb_serial_port *port, |
691 | struct termios *old_termios) | 691 | struct ktermios *old_termios) |
692 | { | 692 | { |
693 | struct klsi_105_private *priv = usb_get_serial_port_data(port); | 693 | struct klsi_105_private *priv = usb_get_serial_port_data(port); |
694 | unsigned int iflag = port->tty->termios->c_iflag; | 694 | unsigned int iflag = port->tty->termios->c_iflag; |
diff --git a/drivers/usb/serial/kobil_sct.c b/drivers/usb/serial/kobil_sct.c index 237289920f03..e284d6c0fd35 100644 --- a/drivers/usb/serial/kobil_sct.c +++ b/drivers/usb/serial/kobil_sct.c | |||
@@ -136,7 +136,7 @@ struct kobil_private { | |||
136 | int cur_pos; // index of the next char to send in buf | 136 | int cur_pos; // index of the next char to send in buf |
137 | __u16 device_type; | 137 | __u16 device_type; |
138 | int line_state; | 138 | int line_state; |
139 | struct termios internal_termios; | 139 | struct ktermios internal_termios; |
140 | }; | 140 | }; |
141 | 141 | ||
142 | 142 | ||
@@ -624,11 +624,11 @@ static int kobil_ioctl(struct usb_serial_port *port, struct file *file, | |||
624 | 624 | ||
625 | switch (cmd) { | 625 | switch (cmd) { |
626 | case TCGETS: // 0x5401 | 626 | case TCGETS: // 0x5401 |
627 | if (!access_ok(VERIFY_WRITE, user_arg, sizeof(struct termios))) { | 627 | if (!access_ok(VERIFY_WRITE, user_arg, sizeof(struct ktermios))) { |
628 | dbg("%s - port %d Error in access_ok", __FUNCTION__, port->number); | 628 | dbg("%s - port %d Error in access_ok", __FUNCTION__, port->number); |
629 | return -EFAULT; | 629 | return -EFAULT; |
630 | } | 630 | } |
631 | if (kernel_termios_to_user_termios((struct termios __user *)arg, | 631 | if (kernel_termios_to_user_termios((struct ktermios __user *)arg, |
632 | &priv->internal_termios)) | 632 | &priv->internal_termios)) |
633 | return -EFAULT; | 633 | return -EFAULT; |
634 | return 0; | 634 | return 0; |
@@ -638,12 +638,12 @@ static int kobil_ioctl(struct usb_serial_port *port, struct file *file, | |||
638 | dbg("%s - port %d Error: port->tty->termios is NULL", __FUNCTION__, port->number); | 638 | dbg("%s - port %d Error: port->tty->termios is NULL", __FUNCTION__, port->number); |
639 | return -ENOTTY; | 639 | return -ENOTTY; |
640 | } | 640 | } |
641 | if (!access_ok(VERIFY_READ, user_arg, sizeof(struct termios))) { | 641 | if (!access_ok(VERIFY_READ, user_arg, sizeof(struct ktermios))) { |
642 | dbg("%s - port %d Error in access_ok", __FUNCTION__, port->number); | 642 | dbg("%s - port %d Error in access_ok", __FUNCTION__, port->number); |
643 | return -EFAULT; | 643 | return -EFAULT; |
644 | } | 644 | } |
645 | if (user_termios_to_kernel_termios(&priv->internal_termios, | 645 | if (user_termios_to_kernel_termios(&priv->internal_termios, |
646 | (struct termios __user *)arg)) | 646 | (struct ktermios __user *)arg)) |
647 | return -EFAULT; | 647 | return -EFAULT; |
648 | 648 | ||
649 | settings = kzalloc(50, GFP_KERNEL); | 649 | settings = kzalloc(50, GFP_KERNEL); |
diff --git a/drivers/usb/serial/mct_u232.c b/drivers/usb/serial/mct_u232.c index a906e500a02b..38b1d17e06ef 100644 --- a/drivers/usb/serial/mct_u232.c +++ b/drivers/usb/serial/mct_u232.c | |||
@@ -98,7 +98,7 @@ static void mct_u232_close (struct usb_serial_port *port, | |||
98 | struct file *filp); | 98 | struct file *filp); |
99 | static void mct_u232_read_int_callback (struct urb *urb); | 99 | static void mct_u232_read_int_callback (struct urb *urb); |
100 | static void mct_u232_set_termios (struct usb_serial_port *port, | 100 | static void mct_u232_set_termios (struct usb_serial_port *port, |
101 | struct termios * old); | 101 | struct ktermios * old); |
102 | static int mct_u232_ioctl (struct usb_serial_port *port, | 102 | static int mct_u232_ioctl (struct usb_serial_port *port, |
103 | struct file * file, | 103 | struct file * file, |
104 | unsigned int cmd, | 104 | unsigned int cmd, |
@@ -556,7 +556,7 @@ exit: | |||
556 | } /* mct_u232_read_int_callback */ | 556 | } /* mct_u232_read_int_callback */ |
557 | 557 | ||
558 | static void mct_u232_set_termios (struct usb_serial_port *port, | 558 | static void mct_u232_set_termios (struct usb_serial_port *port, |
559 | struct termios *old_termios) | 559 | struct ktermios *old_termios) |
560 | { | 560 | { |
561 | struct usb_serial *serial = port->serial; | 561 | struct usb_serial *serial = port->serial; |
562 | struct mct_u232_private *priv = usb_get_serial_port_data(port); | 562 | struct mct_u232_private *priv = usb_get_serial_port_data(port); |
diff --git a/drivers/usb/serial/mos7720.c b/drivers/usb/serial/mos7720.c index 70f93b18292f..e55f4ed81d7b 100644 --- a/drivers/usb/serial/mos7720.c +++ b/drivers/usb/serial/mos7720.c | |||
@@ -1014,7 +1014,7 @@ static int send_cmd_write_baud_rate(struct moschip_port *mos7720_port, | |||
1014 | * the specified new settings. | 1014 | * the specified new settings. |
1015 | */ | 1015 | */ |
1016 | static void change_port_settings(struct moschip_port *mos7720_port, | 1016 | static void change_port_settings(struct moschip_port *mos7720_port, |
1017 | struct termios *old_termios) | 1017 | struct ktermios *old_termios) |
1018 | { | 1018 | { |
1019 | struct usb_serial_port *port; | 1019 | struct usb_serial_port *port; |
1020 | struct usb_serial *serial; | 1020 | struct usb_serial *serial; |
@@ -1203,7 +1203,7 @@ static void change_port_settings(struct moschip_port *mos7720_port, | |||
1203 | * termios structure. | 1203 | * termios structure. |
1204 | */ | 1204 | */ |
1205 | static void mos7720_set_termios(struct usb_serial_port *port, | 1205 | static void mos7720_set_termios(struct usb_serial_port *port, |
1206 | struct termios *old_termios) | 1206 | struct ktermios *old_termios) |
1207 | { | 1207 | { |
1208 | int status; | 1208 | int status; |
1209 | unsigned int cflag; | 1209 | unsigned int cflag; |
diff --git a/drivers/usb/serial/mos7840.c b/drivers/usb/serial/mos7840.c index 5432c6340086..8cc728a49e41 100644 --- a/drivers/usb/serial/mos7840.c +++ b/drivers/usb/serial/mos7840.c | |||
@@ -1931,7 +1931,7 @@ static int mos7840_send_cmd_write_baud_rate(struct moschip_port *mos7840_port, | |||
1931 | *****************************************************************************/ | 1931 | *****************************************************************************/ |
1932 | 1932 | ||
1933 | static void mos7840_change_port_settings(struct moschip_port *mos7840_port, | 1933 | static void mos7840_change_port_settings(struct moschip_port *mos7840_port, |
1934 | struct termios *old_termios) | 1934 | struct ktermios *old_termios) |
1935 | { | 1935 | { |
1936 | struct tty_struct *tty; | 1936 | struct tty_struct *tty; |
1937 | int baud; | 1937 | int baud; |
@@ -2118,7 +2118,7 @@ static void mos7840_change_port_settings(struct moschip_port *mos7840_port, | |||
2118 | *****************************************************************************/ | 2118 | *****************************************************************************/ |
2119 | 2119 | ||
2120 | static void mos7840_set_termios(struct usb_serial_port *port, | 2120 | static void mos7840_set_termios(struct usb_serial_port *port, |
2121 | struct termios *old_termios) | 2121 | struct ktermios *old_termios) |
2122 | { | 2122 | { |
2123 | int status; | 2123 | int status; |
2124 | unsigned int cflag; | 2124 | unsigned int cflag; |
diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c index 130afbbd3fca..0ae4098718c3 100644 --- a/drivers/usb/serial/option.c +++ b/drivers/usb/serial/option.c | |||
@@ -59,7 +59,7 @@ static int option_chars_in_buffer(struct usb_serial_port *port); | |||
59 | static int option_ioctl(struct usb_serial_port *port, struct file *file, | 59 | static int option_ioctl(struct usb_serial_port *port, struct file *file, |
60 | unsigned int cmd, unsigned long arg); | 60 | unsigned int cmd, unsigned long arg); |
61 | static void option_set_termios(struct usb_serial_port *port, | 61 | static void option_set_termios(struct usb_serial_port *port, |
62 | struct termios *old); | 62 | struct ktermios *old); |
63 | static void option_break_ctl(struct usb_serial_port *port, int break_state); | 63 | static void option_break_ctl(struct usb_serial_port *port, int break_state); |
64 | static int option_tiocmget(struct usb_serial_port *port, struct file *file); | 64 | static int option_tiocmget(struct usb_serial_port *port, struct file *file); |
65 | static int option_tiocmset(struct usb_serial_port *port, struct file *file, | 65 | static int option_tiocmset(struct usb_serial_port *port, struct file *file, |
@@ -230,7 +230,7 @@ static void option_break_ctl(struct usb_serial_port *port, int break_state) | |||
230 | } | 230 | } |
231 | 231 | ||
232 | static void option_set_termios(struct usb_serial_port *port, | 232 | static void option_set_termios(struct usb_serial_port *port, |
233 | struct termios *old_termios) | 233 | struct ktermios *old_termios) |
234 | { | 234 | { |
235 | dbg("%s", __FUNCTION__); | 235 | dbg("%s", __FUNCTION__); |
236 | 236 | ||
diff --git a/drivers/usb/serial/pl2303.c b/drivers/usb/serial/pl2303.c index bc800c8787a8..d124d780e42e 100644 --- a/drivers/usb/serial/pl2303.c +++ b/drivers/usb/serial/pl2303.c | |||
@@ -455,7 +455,7 @@ static int pl2303_chars_in_buffer(struct usb_serial_port *port) | |||
455 | } | 455 | } |
456 | 456 | ||
457 | static void pl2303_set_termios(struct usb_serial_port *port, | 457 | static void pl2303_set_termios(struct usb_serial_port *port, |
458 | struct termios *old_termios) | 458 | struct ktermios *old_termios) |
459 | { | 459 | { |
460 | struct usb_serial *serial = port->serial; | 460 | struct usb_serial *serial = port->serial; |
461 | struct pl2303_private *priv = usb_get_serial_port_data(port); | 461 | struct pl2303_private *priv = usb_get_serial_port_data(port); |
@@ -687,7 +687,7 @@ static void pl2303_close(struct usb_serial_port *port, struct file *filp) | |||
687 | 687 | ||
688 | static int pl2303_open(struct usb_serial_port *port, struct file *filp) | 688 | static int pl2303_open(struct usb_serial_port *port, struct file *filp) |
689 | { | 689 | { |
690 | struct termios tmp_termios; | 690 | struct ktermios tmp_termios; |
691 | struct usb_serial *serial = port->serial; | 691 | struct usb_serial *serial = port->serial; |
692 | struct pl2303_private *priv = usb_get_serial_port_data(port); | 692 | struct pl2303_private *priv = usb_get_serial_port_data(port); |
693 | unsigned char *buf; | 693 | unsigned char *buf; |
diff --git a/drivers/usb/serial/sierra.c b/drivers/usb/serial/sierra.c index 4b5097fa48d7..6d8e91e00ecf 100644 --- a/drivers/usb/serial/sierra.c +++ b/drivers/usb/serial/sierra.c | |||
@@ -145,7 +145,7 @@ static void sierra_break_ctl(struct usb_serial_port *port, int break_state) | |||
145 | } | 145 | } |
146 | 146 | ||
147 | static void sierra_set_termios(struct usb_serial_port *port, | 147 | static void sierra_set_termios(struct usb_serial_port *port, |
148 | struct termios *old_termios) | 148 | struct ktermios *old_termios) |
149 | { | 149 | { |
150 | dbg("%s", __FUNCTION__); | 150 | dbg("%s", __FUNCTION__); |
151 | 151 | ||
diff --git a/drivers/usb/serial/ti_usb_3410_5052.c b/drivers/usb/serial/ti_usb_3410_5052.c index ae98d8cbdbb8..f42eb9ea6405 100644 --- a/drivers/usb/serial/ti_usb_3410_5052.c +++ b/drivers/usb/serial/ti_usb_3410_5052.c | |||
@@ -161,7 +161,7 @@ static void ti_throttle(struct usb_serial_port *port); | |||
161 | static void ti_unthrottle(struct usb_serial_port *port); | 161 | static void ti_unthrottle(struct usb_serial_port *port); |
162 | static int ti_ioctl(struct usb_serial_port *port, struct file *file, unsigned int cmd, unsigned long arg); | 162 | static int ti_ioctl(struct usb_serial_port *port, struct file *file, unsigned int cmd, unsigned long arg); |
163 | static void ti_set_termios(struct usb_serial_port *port, | 163 | static void ti_set_termios(struct usb_serial_port *port, |
164 | struct termios *old_termios); | 164 | struct ktermios *old_termios); |
165 | static int ti_tiocmget(struct usb_serial_port *port, struct file *file); | 165 | static int ti_tiocmget(struct usb_serial_port *port, struct file *file); |
166 | static int ti_tiocmset(struct usb_serial_port *port, struct file *file, | 166 | static int ti_tiocmset(struct usb_serial_port *port, struct file *file, |
167 | unsigned int set, unsigned int clear); | 167 | unsigned int set, unsigned int clear); |
@@ -881,7 +881,7 @@ static int ti_ioctl(struct usb_serial_port *port, struct file *file, | |||
881 | 881 | ||
882 | 882 | ||
883 | static void ti_set_termios(struct usb_serial_port *port, | 883 | static void ti_set_termios(struct usb_serial_port *port, |
884 | struct termios *old_termios) | 884 | struct ktermios *old_termios) |
885 | { | 885 | { |
886 | struct ti_port *tport = usb_get_serial_port_data(port); | 886 | struct ti_port *tport = usb_get_serial_port_data(port); |
887 | struct tty_struct *tty = port->tty; | 887 | struct tty_struct *tty = port->tty; |
diff --git a/drivers/usb/serial/usb-serial.c b/drivers/usb/serial/usb-serial.c index 3d5072f14b8d..716f6806cc89 100644 --- a/drivers/usb/serial/usb-serial.c +++ b/drivers/usb/serial/usb-serial.c | |||
@@ -397,7 +397,7 @@ exit: | |||
397 | return retval; | 397 | return retval; |
398 | } | 398 | } |
399 | 399 | ||
400 | static void serial_set_termios (struct tty_struct *tty, struct termios * old) | 400 | static void serial_set_termios (struct tty_struct *tty, struct ktermios * old) |
401 | { | 401 | { |
402 | struct usb_serial_port *port = tty->driver_data; | 402 | struct usb_serial_port *port = tty->driver_data; |
403 | 403 | ||
diff --git a/drivers/usb/serial/visor.c b/drivers/usb/serial/visor.c index eef5eaa5fa0b..b09f06096056 100644 --- a/drivers/usb/serial/visor.c +++ b/drivers/usb/serial/visor.c | |||
@@ -46,7 +46,7 @@ static int visor_probe (struct usb_serial *serial, const struct usb_device_id | |||
46 | static int visor_calc_num_ports(struct usb_serial *serial); | 46 | static int visor_calc_num_ports(struct usb_serial *serial); |
47 | static void visor_shutdown (struct usb_serial *serial); | 47 | static void visor_shutdown (struct usb_serial *serial); |
48 | static int visor_ioctl (struct usb_serial_port *port, struct file * file, unsigned int cmd, unsigned long arg); | 48 | static int visor_ioctl (struct usb_serial_port *port, struct file * file, unsigned int cmd, unsigned long arg); |
49 | static void visor_set_termios (struct usb_serial_port *port, struct termios *old_termios); | 49 | static void visor_set_termios (struct usb_serial_port *port, struct ktermios *old_termios); |
50 | static void visor_write_bulk_callback (struct urb *urb); | 50 | static void visor_write_bulk_callback (struct urb *urb); |
51 | static void visor_read_bulk_callback (struct urb *urb); | 51 | static void visor_read_bulk_callback (struct urb *urb); |
52 | static void visor_read_int_callback (struct urb *urb); | 52 | static void visor_read_int_callback (struct urb *urb); |
@@ -916,7 +916,7 @@ static int visor_ioctl (struct usb_serial_port *port, struct file * file, unsign | |||
916 | 916 | ||
917 | 917 | ||
918 | /* This function is all nice and good, but we don't change anything based on it :) */ | 918 | /* This function is all nice and good, but we don't change anything based on it :) */ |
919 | static void visor_set_termios (struct usb_serial_port *port, struct termios *old_termios) | 919 | static void visor_set_termios (struct usb_serial_port *port, struct ktermios *old_termios) |
920 | { | 920 | { |
921 | unsigned int cflag; | 921 | unsigned int cflag; |
922 | 922 | ||
diff --git a/drivers/usb/serial/whiteheat.c b/drivers/usb/serial/whiteheat.c index 154c7d290597..dc45e58e2b8c 100644 --- a/drivers/usb/serial/whiteheat.c +++ b/drivers/usb/serial/whiteheat.c | |||
@@ -145,7 +145,7 @@ static void whiteheat_close (struct usb_serial_port *port, struct file *filp); | |||
145 | static int whiteheat_write (struct usb_serial_port *port, const unsigned char *buf, int count); | 145 | static int whiteheat_write (struct usb_serial_port *port, const unsigned char *buf, int count); |
146 | static int whiteheat_write_room (struct usb_serial_port *port); | 146 | static int whiteheat_write_room (struct usb_serial_port *port); |
147 | static int whiteheat_ioctl (struct usb_serial_port *port, struct file * file, unsigned int cmd, unsigned long arg); | 147 | static int whiteheat_ioctl (struct usb_serial_port *port, struct file * file, unsigned int cmd, unsigned long arg); |
148 | static void whiteheat_set_termios (struct usb_serial_port *port, struct termios * old); | 148 | static void whiteheat_set_termios (struct usb_serial_port *port, struct ktermios * old); |
149 | static int whiteheat_tiocmget (struct usb_serial_port *port, struct file *file); | 149 | static int whiteheat_tiocmget (struct usb_serial_port *port, struct file *file); |
150 | static int whiteheat_tiocmset (struct usb_serial_port *port, struct file *file, unsigned int set, unsigned int clear); | 150 | static int whiteheat_tiocmset (struct usb_serial_port *port, struct file *file, unsigned int set, unsigned int clear); |
151 | static void whiteheat_break_ctl (struct usb_serial_port *port, int break_state); | 151 | static void whiteheat_break_ctl (struct usb_serial_port *port, int break_state); |
@@ -597,7 +597,7 @@ static void whiteheat_shutdown (struct usb_serial *serial) | |||
597 | static int whiteheat_open (struct usb_serial_port *port, struct file *filp) | 597 | static int whiteheat_open (struct usb_serial_port *port, struct file *filp) |
598 | { | 598 | { |
599 | int retval = 0; | 599 | int retval = 0; |
600 | struct termios old_term; | 600 | struct ktermios old_term; |
601 | 601 | ||
602 | dbg("%s - port %d", __FUNCTION__, port->number); | 602 | dbg("%s - port %d", __FUNCTION__, port->number); |
603 | 603 | ||
@@ -870,7 +870,7 @@ static int whiteheat_ioctl (struct usb_serial_port *port, struct file * file, un | |||
870 | } | 870 | } |
871 | 871 | ||
872 | 872 | ||
873 | static void whiteheat_set_termios (struct usb_serial_port *port, struct termios *old_termios) | 873 | static void whiteheat_set_termios (struct usb_serial_port *port, struct ktermios *old_termios) |
874 | { | 874 | { |
875 | dbg("%s -port %d", __FUNCTION__, port->number); | 875 | dbg("%s -port %d", __FUNCTION__, port->number); |
876 | 876 | ||