diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-03-16 18:11:04 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-03-16 18:11:04 -0400 |
commit | e6bee325e49f17c65c1fd66e9e8b348c85788341 (patch) | |
tree | bcc9e5d8e82efa9009edd481a837cc3626360091 /drivers/usb/serial | |
parent | a5e6b135bdff649e4330f98e2e80dbb1984f7e77 (diff) | |
parent | 6ae705b23be8da52d3163be9d81e9b767876aaf9 (diff) |
Merge branch 'tty-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty-2.6
* 'tty-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty-2.6: (76 commits)
pch_uart: reference clock on CM-iTC
pch_phub: add new device ML7213
n_gsm: fix UIH control byte : P bit should be 0
n_gsm: add a documentation
serial: msm_serial_hs: Add MSM high speed UART driver
tty_audit: fix tty_audit_add_data live lock on audit disabled
tty: move cd1865.h to drivers/staging/tty/
Staging: tty: fix build with epca.c driver
pcmcia: synclink_cs: fix prototype for mgslpc_ioctl()
Staging: generic_serial: fix double locking bug
nozomi: don't use flush_scheduled_work()
tty/serial: Relax the device_type restriction from of_serial
MAINTAINERS: Update HVC file patterns
tty: phase out of ioctl file pointer for tty3270 as well
tty: forgot to remove ipwireless from drivers/char/pcmcia/Makefile
pch_uart: Fix DMA channel miss-setting issue.
pch_uart: fix exclusive access issue
pch_uart: fix auto flow control miss-setting issue
pch_uart: fix uart clock setting issue
pch_uart : Use dev_xxx not pr_xxx
...
Fix up trivial conflicts in drivers/misc/pch_phub.c (same patch applied
twice, then changes to the same area in one branch)
Diffstat (limited to 'drivers/usb/serial')
29 files changed, 120 insertions, 123 deletions
diff --git a/drivers/usb/serial/ark3116.c b/drivers/usb/serial/ark3116.c index 8f1d4fb19d24..5cdb9d912275 100644 --- a/drivers/usb/serial/ark3116.c +++ b/drivers/usb/serial/ark3116.c | |||
@@ -431,7 +431,7 @@ static int ark3116_get_icount(struct tty_struct *tty, | |||
431 | return 0; | 431 | return 0; |
432 | } | 432 | } |
433 | 433 | ||
434 | static int ark3116_ioctl(struct tty_struct *tty, struct file *file, | 434 | static int ark3116_ioctl(struct tty_struct *tty, |
435 | unsigned int cmd, unsigned long arg) | 435 | unsigned int cmd, unsigned long arg) |
436 | { | 436 | { |
437 | struct usb_serial_port *port = tty->driver_data; | 437 | struct usb_serial_port *port = tty->driver_data; |
@@ -485,7 +485,7 @@ static int ark3116_ioctl(struct tty_struct *tty, struct file *file, | |||
485 | return -ENOIOCTLCMD; | 485 | return -ENOIOCTLCMD; |
486 | } | 486 | } |
487 | 487 | ||
488 | static int ark3116_tiocmget(struct tty_struct *tty, struct file *file) | 488 | static int ark3116_tiocmget(struct tty_struct *tty) |
489 | { | 489 | { |
490 | struct usb_serial_port *port = tty->driver_data; | 490 | struct usb_serial_port *port = tty->driver_data; |
491 | struct ark3116_private *priv = usb_get_serial_port_data(port); | 491 | struct ark3116_private *priv = usb_get_serial_port_data(port); |
@@ -511,7 +511,7 @@ static int ark3116_tiocmget(struct tty_struct *tty, struct file *file) | |||
511 | (ctrl & UART_MCR_OUT2 ? TIOCM_OUT2 : 0); | 511 | (ctrl & UART_MCR_OUT2 ? TIOCM_OUT2 : 0); |
512 | } | 512 | } |
513 | 513 | ||
514 | static int ark3116_tiocmset(struct tty_struct *tty, struct file *file, | 514 | static int ark3116_tiocmset(struct tty_struct *tty, |
515 | unsigned set, unsigned clr) | 515 | unsigned set, unsigned clr) |
516 | { | 516 | { |
517 | struct usb_serial_port *port = tty->driver_data; | 517 | struct usb_serial_port *port = tty->driver_data; |
diff --git a/drivers/usb/serial/belkin_sa.c b/drivers/usb/serial/belkin_sa.c index 36df35295db2..d6921fa1403c 100644 --- a/drivers/usb/serial/belkin_sa.c +++ b/drivers/usb/serial/belkin_sa.c | |||
@@ -100,8 +100,8 @@ static void belkin_sa_process_read_urb(struct urb *urb); | |||
100 | static void belkin_sa_set_termios(struct tty_struct *tty, | 100 | static void belkin_sa_set_termios(struct tty_struct *tty, |
101 | struct usb_serial_port *port, struct ktermios * old); | 101 | struct usb_serial_port *port, struct ktermios * old); |
102 | static void belkin_sa_break_ctl(struct tty_struct *tty, int break_state); | 102 | static void belkin_sa_break_ctl(struct tty_struct *tty, int break_state); |
103 | static int belkin_sa_tiocmget(struct tty_struct *tty, struct file *file); | 103 | static int belkin_sa_tiocmget(struct tty_struct *tty); |
104 | static int belkin_sa_tiocmset(struct tty_struct *tty, struct file *file, | 104 | static int belkin_sa_tiocmset(struct tty_struct *tty, |
105 | unsigned int set, unsigned int clear); | 105 | unsigned int set, unsigned int clear); |
106 | 106 | ||
107 | 107 | ||
@@ -497,7 +497,7 @@ static void belkin_sa_break_ctl(struct tty_struct *tty, int break_state) | |||
497 | dev_err(&port->dev, "Set break_ctl %d\n", break_state); | 497 | dev_err(&port->dev, "Set break_ctl %d\n", break_state); |
498 | } | 498 | } |
499 | 499 | ||
500 | static int belkin_sa_tiocmget(struct tty_struct *tty, struct file *file) | 500 | static int belkin_sa_tiocmget(struct tty_struct *tty) |
501 | { | 501 | { |
502 | struct usb_serial_port *port = tty->driver_data; | 502 | struct usb_serial_port *port = tty->driver_data; |
503 | struct belkin_sa_private *priv = usb_get_serial_port_data(port); | 503 | struct belkin_sa_private *priv = usb_get_serial_port_data(port); |
@@ -513,7 +513,7 @@ static int belkin_sa_tiocmget(struct tty_struct *tty, struct file *file) | |||
513 | return control_state; | 513 | return control_state; |
514 | } | 514 | } |
515 | 515 | ||
516 | static int belkin_sa_tiocmset(struct tty_struct *tty, struct file *file, | 516 | static int belkin_sa_tiocmset(struct tty_struct *tty, |
517 | unsigned int set, unsigned int clear) | 517 | unsigned int set, unsigned int clear) |
518 | { | 518 | { |
519 | struct usb_serial_port *port = tty->driver_data; | 519 | struct usb_serial_port *port = tty->driver_data; |
diff --git a/drivers/usb/serial/ch341.c b/drivers/usb/serial/ch341.c index 14ac87ee9251..6ae1c0688b5e 100644 --- a/drivers/usb/serial/ch341.c +++ b/drivers/usb/serial/ch341.c | |||
@@ -432,7 +432,7 @@ out: | |||
432 | kfree(break_reg); | 432 | kfree(break_reg); |
433 | } | 433 | } |
434 | 434 | ||
435 | static int ch341_tiocmset(struct tty_struct *tty, struct file *file, | 435 | static int ch341_tiocmset(struct tty_struct *tty, |
436 | unsigned int set, unsigned int clear) | 436 | unsigned int set, unsigned int clear) |
437 | { | 437 | { |
438 | struct usb_serial_port *port = tty->driver_data; | 438 | struct usb_serial_port *port = tty->driver_data; |
@@ -553,8 +553,7 @@ static int wait_modem_info(struct usb_serial_port *port, unsigned int arg) | |||
553 | return 0; | 553 | return 0; |
554 | } | 554 | } |
555 | 555 | ||
556 | /*static int ch341_ioctl(struct usb_serial_port *port, struct file *file,*/ | 556 | static int ch341_ioctl(struct tty_struct *tty, |
557 | static int ch341_ioctl(struct tty_struct *tty, struct file *file, | ||
558 | unsigned int cmd, unsigned long arg) | 557 | unsigned int cmd, unsigned long arg) |
559 | { | 558 | { |
560 | struct usb_serial_port *port = tty->driver_data; | 559 | struct usb_serial_port *port = tty->driver_data; |
@@ -573,7 +572,7 @@ static int ch341_ioctl(struct tty_struct *tty, struct file *file, | |||
573 | return -ENOIOCTLCMD; | 572 | return -ENOIOCTLCMD; |
574 | } | 573 | } |
575 | 574 | ||
576 | static int ch341_tiocmget(struct tty_struct *tty, struct file *file) | 575 | static int ch341_tiocmget(struct tty_struct *tty) |
577 | { | 576 | { |
578 | struct usb_serial_port *port = tty->driver_data; | 577 | struct usb_serial_port *port = tty->driver_data; |
579 | struct ch341_private *priv = usb_get_serial_port_data(port); | 578 | struct ch341_private *priv = usb_get_serial_port_data(port); |
diff --git a/drivers/usb/serial/cp210x.c b/drivers/usb/serial/cp210x.c index 735ea03157ab..4df3e0cecbae 100644 --- a/drivers/usb/serial/cp210x.c +++ b/drivers/usb/serial/cp210x.c | |||
@@ -41,10 +41,9 @@ static void cp210x_get_termios_port(struct usb_serial_port *port, | |||
41 | unsigned int *cflagp, unsigned int *baudp); | 41 | unsigned int *cflagp, unsigned int *baudp); |
42 | static void cp210x_set_termios(struct tty_struct *, struct usb_serial_port *, | 42 | static void cp210x_set_termios(struct tty_struct *, struct usb_serial_port *, |
43 | struct ktermios*); | 43 | struct ktermios*); |
44 | static int cp210x_tiocmget(struct tty_struct *, struct file *); | 44 | static int cp210x_tiocmget(struct tty_struct *); |
45 | static int cp210x_tiocmset(struct tty_struct *, struct file *, | 45 | static int cp210x_tiocmset(struct tty_struct *, unsigned int, unsigned int); |
46 | unsigned int, unsigned int); | 46 | static int cp210x_tiocmset_port(struct usb_serial_port *port, |
47 | static int cp210x_tiocmset_port(struct usb_serial_port *port, struct file *, | ||
48 | unsigned int, unsigned int); | 47 | unsigned int, unsigned int); |
49 | static void cp210x_break_ctl(struct tty_struct *, int); | 48 | static void cp210x_break_ctl(struct tty_struct *, int); |
50 | static int cp210x_startup(struct usb_serial *); | 49 | static int cp210x_startup(struct usb_serial *); |
@@ -698,14 +697,14 @@ static void cp210x_set_termios(struct tty_struct *tty, | |||
698 | 697 | ||
699 | } | 698 | } |
700 | 699 | ||
701 | static int cp210x_tiocmset (struct tty_struct *tty, struct file *file, | 700 | static int cp210x_tiocmset (struct tty_struct *tty, |
702 | unsigned int set, unsigned int clear) | 701 | unsigned int set, unsigned int clear) |
703 | { | 702 | { |
704 | struct usb_serial_port *port = tty->driver_data; | 703 | struct usb_serial_port *port = tty->driver_data; |
705 | return cp210x_tiocmset_port(port, file, set, clear); | 704 | return cp210x_tiocmset_port(port, set, clear); |
706 | } | 705 | } |
707 | 706 | ||
708 | static int cp210x_tiocmset_port(struct usb_serial_port *port, struct file *file, | 707 | static int cp210x_tiocmset_port(struct usb_serial_port *port, |
709 | unsigned int set, unsigned int clear) | 708 | unsigned int set, unsigned int clear) |
710 | { | 709 | { |
711 | unsigned int control = 0; | 710 | unsigned int control = 0; |
@@ -737,12 +736,12 @@ static int cp210x_tiocmset_port(struct usb_serial_port *port, struct file *file, | |||
737 | static void cp210x_dtr_rts(struct usb_serial_port *p, int on) | 736 | static void cp210x_dtr_rts(struct usb_serial_port *p, int on) |
738 | { | 737 | { |
739 | if (on) | 738 | if (on) |
740 | cp210x_tiocmset_port(p, NULL, TIOCM_DTR|TIOCM_RTS, 0); | 739 | cp210x_tiocmset_port(p, TIOCM_DTR|TIOCM_RTS, 0); |
741 | else | 740 | else |
742 | cp210x_tiocmset_port(p, NULL, 0, TIOCM_DTR|TIOCM_RTS); | 741 | cp210x_tiocmset_port(p, 0, TIOCM_DTR|TIOCM_RTS); |
743 | } | 742 | } |
744 | 743 | ||
745 | static int cp210x_tiocmget (struct tty_struct *tty, struct file *file) | 744 | static int cp210x_tiocmget (struct tty_struct *tty) |
746 | { | 745 | { |
747 | struct usb_serial_port *port = tty->driver_data; | 746 | struct usb_serial_port *port = tty->driver_data; |
748 | unsigned int control; | 747 | unsigned int control; |
diff --git a/drivers/usb/serial/cypress_m8.c b/drivers/usb/serial/cypress_m8.c index 2edf238b00b9..987e9bf7bd02 100644 --- a/drivers/usb/serial/cypress_m8.c +++ b/drivers/usb/serial/cypress_m8.c | |||
@@ -169,12 +169,12 @@ static int cypress_write(struct tty_struct *tty, struct usb_serial_port *port, | |||
169 | const unsigned char *buf, int count); | 169 | const unsigned char *buf, int count); |
170 | static void cypress_send(struct usb_serial_port *port); | 170 | static void cypress_send(struct usb_serial_port *port); |
171 | static int cypress_write_room(struct tty_struct *tty); | 171 | static int cypress_write_room(struct tty_struct *tty); |
172 | static int cypress_ioctl(struct tty_struct *tty, struct file *file, | 172 | static int cypress_ioctl(struct tty_struct *tty, |
173 | unsigned int cmd, unsigned long arg); | 173 | unsigned int cmd, unsigned long arg); |
174 | static void cypress_set_termios(struct tty_struct *tty, | 174 | static void cypress_set_termios(struct tty_struct *tty, |
175 | struct usb_serial_port *port, struct ktermios *old); | 175 | struct usb_serial_port *port, struct ktermios *old); |
176 | static int cypress_tiocmget(struct tty_struct *tty, struct file *file); | 176 | static int cypress_tiocmget(struct tty_struct *tty); |
177 | static int cypress_tiocmset(struct tty_struct *tty, struct file *file, | 177 | static int cypress_tiocmset(struct tty_struct *tty, |
178 | unsigned int set, unsigned int clear); | 178 | unsigned int set, unsigned int clear); |
179 | static int cypress_chars_in_buffer(struct tty_struct *tty); | 179 | static int cypress_chars_in_buffer(struct tty_struct *tty); |
180 | static void cypress_throttle(struct tty_struct *tty); | 180 | static void cypress_throttle(struct tty_struct *tty); |
@@ -864,7 +864,7 @@ static int cypress_write_room(struct tty_struct *tty) | |||
864 | } | 864 | } |
865 | 865 | ||
866 | 866 | ||
867 | static int cypress_tiocmget(struct tty_struct *tty, struct file *file) | 867 | static int cypress_tiocmget(struct tty_struct *tty) |
868 | { | 868 | { |
869 | struct usb_serial_port *port = tty->driver_data; | 869 | struct usb_serial_port *port = tty->driver_data; |
870 | struct cypress_private *priv = usb_get_serial_port_data(port); | 870 | struct cypress_private *priv = usb_get_serial_port_data(port); |
@@ -892,7 +892,7 @@ static int cypress_tiocmget(struct tty_struct *tty, struct file *file) | |||
892 | } | 892 | } |
893 | 893 | ||
894 | 894 | ||
895 | static int cypress_tiocmset(struct tty_struct *tty, struct file *file, | 895 | static int cypress_tiocmset(struct tty_struct *tty, |
896 | unsigned int set, unsigned int clear) | 896 | unsigned int set, unsigned int clear) |
897 | { | 897 | { |
898 | struct usb_serial_port *port = tty->driver_data; | 898 | struct usb_serial_port *port = tty->driver_data; |
@@ -917,7 +917,7 @@ static int cypress_tiocmset(struct tty_struct *tty, struct file *file, | |||
917 | } | 917 | } |
918 | 918 | ||
919 | 919 | ||
920 | static int cypress_ioctl(struct tty_struct *tty, struct file *file, | 920 | static int cypress_ioctl(struct tty_struct *tty, |
921 | unsigned int cmd, unsigned long arg) | 921 | unsigned int cmd, unsigned long arg) |
922 | { | 922 | { |
923 | struct usb_serial_port *port = tty->driver_data; | 923 | struct usb_serial_port *port = tty->driver_data; |
diff --git a/drivers/usb/serial/digi_acceleport.c b/drivers/usb/serial/digi_acceleport.c index 666e5a6edd82..86fbba6336c9 100644 --- a/drivers/usb/serial/digi_acceleport.c +++ b/drivers/usb/serial/digi_acceleport.c | |||
@@ -445,11 +445,11 @@ static void digi_rx_unthrottle(struct tty_struct *tty); | |||
445 | static void digi_set_termios(struct tty_struct *tty, | 445 | static void digi_set_termios(struct tty_struct *tty, |
446 | struct usb_serial_port *port, struct ktermios *old_termios); | 446 | struct usb_serial_port *port, struct ktermios *old_termios); |
447 | static void digi_break_ctl(struct tty_struct *tty, int break_state); | 447 | static void digi_break_ctl(struct tty_struct *tty, int break_state); |
448 | static int digi_tiocmget(struct tty_struct *tty, struct file *file); | 448 | static int digi_tiocmget(struct tty_struct *tty); |
449 | static int digi_tiocmset(struct tty_struct *tty, struct file *file, | 449 | static int digi_tiocmset(struct tty_struct *tty, unsigned int set, |
450 | unsigned int set, unsigned int clear); | 450 | unsigned int clear); |
451 | static int digi_write(struct tty_struct *tty, struct usb_serial_port *port, | 451 | static int digi_write(struct tty_struct *tty, struct usb_serial_port *port, |
452 | const unsigned char *buf, int count); | 452 | const unsigned char *buf, int count); |
453 | static void digi_write_bulk_callback(struct urb *urb); | 453 | static void digi_write_bulk_callback(struct urb *urb); |
454 | static int digi_write_room(struct tty_struct *tty); | 454 | static int digi_write_room(struct tty_struct *tty); |
455 | static int digi_chars_in_buffer(struct tty_struct *tty); | 455 | static int digi_chars_in_buffer(struct tty_struct *tty); |
@@ -1118,7 +1118,7 @@ static void digi_break_ctl(struct tty_struct *tty, int break_state) | |||
1118 | } | 1118 | } |
1119 | 1119 | ||
1120 | 1120 | ||
1121 | static int digi_tiocmget(struct tty_struct *tty, struct file *file) | 1121 | static int digi_tiocmget(struct tty_struct *tty) |
1122 | { | 1122 | { |
1123 | struct usb_serial_port *port = tty->driver_data; | 1123 | struct usb_serial_port *port = tty->driver_data; |
1124 | struct digi_port *priv = usb_get_serial_port_data(port); | 1124 | struct digi_port *priv = usb_get_serial_port_data(port); |
@@ -1134,8 +1134,8 @@ static int digi_tiocmget(struct tty_struct *tty, struct file *file) | |||
1134 | } | 1134 | } |
1135 | 1135 | ||
1136 | 1136 | ||
1137 | static int digi_tiocmset(struct tty_struct *tty, struct file *file, | 1137 | static int digi_tiocmset(struct tty_struct *tty, |
1138 | unsigned int set, unsigned int clear) | 1138 | unsigned int set, unsigned int clear) |
1139 | { | 1139 | { |
1140 | struct usb_serial_port *port = tty->driver_data; | 1140 | struct usb_serial_port *port = tty->driver_data; |
1141 | struct digi_port *priv = usb_get_serial_port_data(port); | 1141 | struct digi_port *priv = usb_get_serial_port_data(port); |
diff --git a/drivers/usb/serial/ftdi_sio.c b/drivers/usb/serial/ftdi_sio.c index a75f9298d88f..65967b36365f 100644 --- a/drivers/usb/serial/ftdi_sio.c +++ b/drivers/usb/serial/ftdi_sio.c | |||
@@ -866,10 +866,10 @@ static int ftdi_prepare_write_buffer(struct usb_serial_port *port, | |||
866 | void *dest, size_t size); | 866 | void *dest, size_t size); |
867 | static void ftdi_set_termios(struct tty_struct *tty, | 867 | static void ftdi_set_termios(struct tty_struct *tty, |
868 | struct usb_serial_port *port, struct ktermios *old); | 868 | struct usb_serial_port *port, struct ktermios *old); |
869 | static int ftdi_tiocmget(struct tty_struct *tty, struct file *file); | 869 | static int ftdi_tiocmget(struct tty_struct *tty); |
870 | static int ftdi_tiocmset(struct tty_struct *tty, struct file *file, | 870 | static int ftdi_tiocmset(struct tty_struct *tty, |
871 | unsigned int set, unsigned int clear); | 871 | unsigned int set, unsigned int clear); |
872 | static int ftdi_ioctl(struct tty_struct *tty, struct file *file, | 872 | static int ftdi_ioctl(struct tty_struct *tty, |
873 | unsigned int cmd, unsigned long arg); | 873 | unsigned int cmd, unsigned long arg); |
874 | static void ftdi_break_ctl(struct tty_struct *tty, int break_state); | 874 | static void ftdi_break_ctl(struct tty_struct *tty, int break_state); |
875 | 875 | ||
@@ -2178,7 +2178,7 @@ static void ftdi_set_termios(struct tty_struct *tty, | |||
2178 | } | 2178 | } |
2179 | } | 2179 | } |
2180 | 2180 | ||
2181 | static int ftdi_tiocmget(struct tty_struct *tty, struct file *file) | 2181 | static int ftdi_tiocmget(struct tty_struct *tty) |
2182 | { | 2182 | { |
2183 | struct usb_serial_port *port = tty->driver_data; | 2183 | struct usb_serial_port *port = tty->driver_data; |
2184 | struct ftdi_private *priv = usb_get_serial_port_data(port); | 2184 | struct ftdi_private *priv = usb_get_serial_port_data(port); |
@@ -2231,7 +2231,7 @@ out: | |||
2231 | return ret; | 2231 | return ret; |
2232 | } | 2232 | } |
2233 | 2233 | ||
2234 | static int ftdi_tiocmset(struct tty_struct *tty, struct file *file, | 2234 | static int ftdi_tiocmset(struct tty_struct *tty, |
2235 | unsigned int set, unsigned int clear) | 2235 | unsigned int set, unsigned int clear) |
2236 | { | 2236 | { |
2237 | struct usb_serial_port *port = tty->driver_data; | 2237 | struct usb_serial_port *port = tty->driver_data; |
@@ -2239,7 +2239,7 @@ static int ftdi_tiocmset(struct tty_struct *tty, struct file *file, | |||
2239 | return update_mctrl(port, set, clear); | 2239 | return update_mctrl(port, set, clear); |
2240 | } | 2240 | } |
2241 | 2241 | ||
2242 | static int ftdi_ioctl(struct tty_struct *tty, struct file *file, | 2242 | static int ftdi_ioctl(struct tty_struct *tty, |
2243 | unsigned int cmd, unsigned long arg) | 2243 | unsigned int cmd, unsigned long arg) |
2244 | { | 2244 | { |
2245 | struct usb_serial_port *port = tty->driver_data; | 2245 | struct usb_serial_port *port = tty->driver_data; |
diff --git a/drivers/usb/serial/io_edgeport.c b/drivers/usb/serial/io_edgeport.c index 76e3e502c23d..f1aedfa7c420 100644 --- a/drivers/usb/serial/io_edgeport.c +++ b/drivers/usb/serial/io_edgeport.c | |||
@@ -216,11 +216,11 @@ static void edge_unthrottle(struct tty_struct *tty); | |||
216 | static void edge_set_termios(struct tty_struct *tty, | 216 | static void edge_set_termios(struct tty_struct *tty, |
217 | struct usb_serial_port *port, | 217 | struct usb_serial_port *port, |
218 | struct ktermios *old_termios); | 218 | struct ktermios *old_termios); |
219 | static int edge_ioctl(struct tty_struct *tty, struct file *file, | 219 | static int edge_ioctl(struct tty_struct *tty, |
220 | unsigned int cmd, unsigned long arg); | 220 | unsigned int cmd, unsigned long arg); |
221 | static void edge_break(struct tty_struct *tty, int break_state); | 221 | static void edge_break(struct tty_struct *tty, int break_state); |
222 | static int edge_tiocmget(struct tty_struct *tty, struct file *file); | 222 | static int edge_tiocmget(struct tty_struct *tty); |
223 | static int edge_tiocmset(struct tty_struct *tty, struct file *file, | 223 | static int edge_tiocmset(struct tty_struct *tty, |
224 | unsigned int set, unsigned int clear); | 224 | unsigned int set, unsigned int clear); |
225 | static int edge_get_icount(struct tty_struct *tty, | 225 | static int edge_get_icount(struct tty_struct *tty, |
226 | struct serial_icounter_struct *icount); | 226 | struct serial_icounter_struct *icount); |
@@ -1568,7 +1568,7 @@ static int get_lsr_info(struct edgeport_port *edge_port, | |||
1568 | return 0; | 1568 | return 0; |
1569 | } | 1569 | } |
1570 | 1570 | ||
1571 | static int edge_tiocmset(struct tty_struct *tty, struct file *file, | 1571 | static int edge_tiocmset(struct tty_struct *tty, |
1572 | unsigned int set, unsigned int clear) | 1572 | unsigned int set, unsigned int clear) |
1573 | { | 1573 | { |
1574 | struct usb_serial_port *port = tty->driver_data; | 1574 | struct usb_serial_port *port = tty->driver_data; |
@@ -1599,7 +1599,7 @@ static int edge_tiocmset(struct tty_struct *tty, struct file *file, | |||
1599 | return 0; | 1599 | return 0; |
1600 | } | 1600 | } |
1601 | 1601 | ||
1602 | static int edge_tiocmget(struct tty_struct *tty, struct file *file) | 1602 | static int edge_tiocmget(struct tty_struct *tty) |
1603 | { | 1603 | { |
1604 | struct usb_serial_port *port = tty->driver_data; | 1604 | struct usb_serial_port *port = tty->driver_data; |
1605 | struct edgeport_port *edge_port = usb_get_serial_port_data(port); | 1605 | struct edgeport_port *edge_port = usb_get_serial_port_data(port); |
@@ -1679,7 +1679,7 @@ static int get_serial_info(struct edgeport_port *edge_port, | |||
1679 | * SerialIoctl | 1679 | * SerialIoctl |
1680 | * this function handles any ioctl calls to the driver | 1680 | * this function handles any ioctl calls to the driver |
1681 | *****************************************************************************/ | 1681 | *****************************************************************************/ |
1682 | static int edge_ioctl(struct tty_struct *tty, struct file *file, | 1682 | static int edge_ioctl(struct tty_struct *tty, |
1683 | unsigned int cmd, unsigned long arg) | 1683 | unsigned int cmd, unsigned long arg) |
1684 | { | 1684 | { |
1685 | struct usb_serial_port *port = tty->driver_data; | 1685 | struct usb_serial_port *port = tty->driver_data; |
diff --git a/drivers/usb/serial/io_ti.c b/drivers/usb/serial/io_ti.c index 22506b095c4f..d8434910fa7b 100644 --- a/drivers/usb/serial/io_ti.c +++ b/drivers/usb/serial/io_ti.c | |||
@@ -2444,7 +2444,7 @@ static void edge_set_termios(struct tty_struct *tty, | |||
2444 | change_port_settings(tty, edge_port, old_termios); | 2444 | change_port_settings(tty, edge_port, old_termios); |
2445 | } | 2445 | } |
2446 | 2446 | ||
2447 | static int edge_tiocmset(struct tty_struct *tty, struct file *file, | 2447 | static int edge_tiocmset(struct tty_struct *tty, |
2448 | unsigned int set, unsigned int clear) | 2448 | unsigned int set, unsigned int clear) |
2449 | { | 2449 | { |
2450 | struct usb_serial_port *port = tty->driver_data; | 2450 | struct usb_serial_port *port = tty->driver_data; |
@@ -2477,7 +2477,7 @@ static int edge_tiocmset(struct tty_struct *tty, struct file *file, | |||
2477 | return 0; | 2477 | return 0; |
2478 | } | 2478 | } |
2479 | 2479 | ||
2480 | static int edge_tiocmget(struct tty_struct *tty, struct file *file) | 2480 | static int edge_tiocmget(struct tty_struct *tty) |
2481 | { | 2481 | { |
2482 | struct usb_serial_port *port = tty->driver_data; | 2482 | struct usb_serial_port *port = tty->driver_data; |
2483 | struct edgeport_port *edge_port = usb_get_serial_port_data(port); | 2483 | struct edgeport_port *edge_port = usb_get_serial_port_data(port); |
@@ -2552,7 +2552,7 @@ static int get_serial_info(struct edgeport_port *edge_port, | |||
2552 | return 0; | 2552 | return 0; |
2553 | } | 2553 | } |
2554 | 2554 | ||
2555 | static int edge_ioctl(struct tty_struct *tty, struct file *file, | 2555 | static int edge_ioctl(struct tty_struct *tty, |
2556 | unsigned int cmd, unsigned long arg) | 2556 | unsigned int cmd, unsigned long arg) |
2557 | { | 2557 | { |
2558 | struct usb_serial_port *port = tty->driver_data; | 2558 | struct usb_serial_port *port = tty->driver_data; |
diff --git a/drivers/usb/serial/iuu_phoenix.c b/drivers/usb/serial/iuu_phoenix.c index 99b97c04896f..6aca631a407a 100644 --- a/drivers/usb/serial/iuu_phoenix.c +++ b/drivers/usb/serial/iuu_phoenix.c | |||
@@ -150,7 +150,7 @@ static void iuu_release(struct usb_serial *serial) | |||
150 | } | 150 | } |
151 | } | 151 | } |
152 | 152 | ||
153 | static int iuu_tiocmset(struct tty_struct *tty, struct file *file, | 153 | static int iuu_tiocmset(struct tty_struct *tty, |
154 | unsigned int set, unsigned int clear) | 154 | unsigned int set, unsigned int clear) |
155 | { | 155 | { |
156 | struct usb_serial_port *port = tty->driver_data; | 156 | struct usb_serial_port *port = tty->driver_data; |
@@ -179,7 +179,7 @@ static int iuu_tiocmset(struct tty_struct *tty, struct file *file, | |||
179 | * When no card , the reader respond with TIOCM_CD | 179 | * When no card , the reader respond with TIOCM_CD |
180 | * This is known as CD autodetect mechanism | 180 | * This is known as CD autodetect mechanism |
181 | */ | 181 | */ |
182 | static int iuu_tiocmget(struct tty_struct *tty, struct file *file) | 182 | static int iuu_tiocmget(struct tty_struct *tty) |
183 | { | 183 | { |
184 | struct usb_serial_port *port = tty->driver_data; | 184 | struct usb_serial_port *port = tty->driver_data; |
185 | struct iuu_private *priv = usb_get_serial_port_data(port); | 185 | struct iuu_private *priv = usb_get_serial_port_data(port); |
diff --git a/drivers/usb/serial/keyspan.c b/drivers/usb/serial/keyspan.c index 67f41b526570..a442352d7b61 100644 --- a/drivers/usb/serial/keyspan.c +++ b/drivers/usb/serial/keyspan.c | |||
@@ -301,7 +301,7 @@ static void keyspan_set_termios(struct tty_struct *tty, | |||
301 | keyspan_send_setup(port, 0); | 301 | keyspan_send_setup(port, 0); |
302 | } | 302 | } |
303 | 303 | ||
304 | static int keyspan_tiocmget(struct tty_struct *tty, struct file *file) | 304 | static int keyspan_tiocmget(struct tty_struct *tty) |
305 | { | 305 | { |
306 | struct usb_serial_port *port = tty->driver_data; | 306 | struct usb_serial_port *port = tty->driver_data; |
307 | struct keyspan_port_private *p_priv = usb_get_serial_port_data(port); | 307 | struct keyspan_port_private *p_priv = usb_get_serial_port_data(port); |
@@ -317,7 +317,7 @@ static int keyspan_tiocmget(struct tty_struct *tty, struct file *file) | |||
317 | return value; | 317 | return value; |
318 | } | 318 | } |
319 | 319 | ||
320 | static int keyspan_tiocmset(struct tty_struct *tty, struct file *file, | 320 | static int keyspan_tiocmset(struct tty_struct *tty, |
321 | unsigned int set, unsigned int clear) | 321 | unsigned int set, unsigned int clear) |
322 | { | 322 | { |
323 | struct usb_serial_port *port = tty->driver_data; | 323 | struct usb_serial_port *port = tty->driver_data; |
diff --git a/drivers/usb/serial/keyspan.h b/drivers/usb/serial/keyspan.h index ce134dc28ddf..13fa1d1cc900 100644 --- a/drivers/usb/serial/keyspan.h +++ b/drivers/usb/serial/keyspan.h | |||
@@ -58,10 +58,9 @@ static void keyspan_set_termios (struct tty_struct *tty, | |||
58 | struct ktermios *old); | 58 | struct ktermios *old); |
59 | static void keyspan_break_ctl (struct tty_struct *tty, | 59 | static void keyspan_break_ctl (struct tty_struct *tty, |
60 | int break_state); | 60 | int break_state); |
61 | static int keyspan_tiocmget (struct tty_struct *tty, | 61 | static int keyspan_tiocmget (struct tty_struct *tty); |
62 | struct file *file); | ||
63 | static int keyspan_tiocmset (struct tty_struct *tty, | 62 | static int keyspan_tiocmset (struct tty_struct *tty, |
64 | struct file *file, unsigned int set, | 63 | unsigned int set, |
65 | unsigned int clear); | 64 | unsigned int clear); |
66 | static int keyspan_fake_startup (struct usb_serial *serial); | 65 | static int keyspan_fake_startup (struct usb_serial *serial); |
67 | 66 | ||
diff --git a/drivers/usb/serial/keyspan_pda.c b/drivers/usb/serial/keyspan_pda.c index 7b690f3282a2..d5c0c6ab4966 100644 --- a/drivers/usb/serial/keyspan_pda.c +++ b/drivers/usb/serial/keyspan_pda.c | |||
@@ -458,7 +458,7 @@ static int keyspan_pda_set_modem_info(struct usb_serial *serial, | |||
458 | return rc; | 458 | return rc; |
459 | } | 459 | } |
460 | 460 | ||
461 | static int keyspan_pda_tiocmget(struct tty_struct *tty, struct file *file) | 461 | static int keyspan_pda_tiocmget(struct tty_struct *tty) |
462 | { | 462 | { |
463 | struct usb_serial_port *port = tty->driver_data; | 463 | struct usb_serial_port *port = tty->driver_data; |
464 | struct usb_serial *serial = port->serial; | 464 | struct usb_serial *serial = port->serial; |
@@ -479,7 +479,7 @@ static int keyspan_pda_tiocmget(struct tty_struct *tty, struct file *file) | |||
479 | return value; | 479 | return value; |
480 | } | 480 | } |
481 | 481 | ||
482 | static int keyspan_pda_tiocmset(struct tty_struct *tty, struct file *file, | 482 | static int keyspan_pda_tiocmset(struct tty_struct *tty, |
483 | unsigned int set, unsigned int clear) | 483 | unsigned int set, unsigned int clear) |
484 | { | 484 | { |
485 | struct usb_serial_port *port = tty->driver_data; | 485 | struct usb_serial_port *port = tty->driver_data; |
diff --git a/drivers/usb/serial/kl5kusb105.c b/drivers/usb/serial/kl5kusb105.c index e8a65ce45a2f..19373cb7c5bf 100644 --- a/drivers/usb/serial/kl5kusb105.c +++ b/drivers/usb/serial/kl5kusb105.c | |||
@@ -68,8 +68,8 @@ static int klsi_105_open(struct tty_struct *tty, struct usb_serial_port *port); | |||
68 | static void klsi_105_close(struct usb_serial_port *port); | 68 | static void klsi_105_close(struct usb_serial_port *port); |
69 | static void klsi_105_set_termios(struct tty_struct *tty, | 69 | static void klsi_105_set_termios(struct tty_struct *tty, |
70 | struct usb_serial_port *port, struct ktermios *old); | 70 | struct usb_serial_port *port, struct ktermios *old); |
71 | static int klsi_105_tiocmget(struct tty_struct *tty, struct file *file); | 71 | static int klsi_105_tiocmget(struct tty_struct *tty); |
72 | static int klsi_105_tiocmset(struct tty_struct *tty, struct file *file, | 72 | static int klsi_105_tiocmset(struct tty_struct *tty, |
73 | unsigned int set, unsigned int clear); | 73 | unsigned int set, unsigned int clear); |
74 | static void klsi_105_process_read_urb(struct urb *urb); | 74 | static void klsi_105_process_read_urb(struct urb *urb); |
75 | static int klsi_105_prepare_write_buffer(struct usb_serial_port *port, | 75 | static int klsi_105_prepare_write_buffer(struct usb_serial_port *port, |
@@ -637,7 +637,7 @@ static void mct_u232_break_ctl(struct tty_struct *tty, int break_state) | |||
637 | } | 637 | } |
638 | #endif | 638 | #endif |
639 | 639 | ||
640 | static int klsi_105_tiocmget(struct tty_struct *tty, struct file *file) | 640 | static int klsi_105_tiocmget(struct tty_struct *tty) |
641 | { | 641 | { |
642 | struct usb_serial_port *port = tty->driver_data; | 642 | struct usb_serial_port *port = tty->driver_data; |
643 | struct klsi_105_private *priv = usb_get_serial_port_data(port); | 643 | struct klsi_105_private *priv = usb_get_serial_port_data(port); |
@@ -661,7 +661,7 @@ static int klsi_105_tiocmget(struct tty_struct *tty, struct file *file) | |||
661 | return (int)line_state; | 661 | return (int)line_state; |
662 | } | 662 | } |
663 | 663 | ||
664 | static int klsi_105_tiocmset(struct tty_struct *tty, struct file *file, | 664 | static int klsi_105_tiocmset(struct tty_struct *tty, |
665 | unsigned int set, unsigned int clear) | 665 | unsigned int set, unsigned int clear) |
666 | { | 666 | { |
667 | int retval = -EINVAL; | 667 | int retval = -EINVAL; |
diff --git a/drivers/usb/serial/kobil_sct.c b/drivers/usb/serial/kobil_sct.c index b382d9a0274d..ddd146300ddb 100644 --- a/drivers/usb/serial/kobil_sct.c +++ b/drivers/usb/serial/kobil_sct.c | |||
@@ -75,10 +75,10 @@ static void kobil_close(struct usb_serial_port *port); | |||
75 | static int kobil_write(struct tty_struct *tty, struct usb_serial_port *port, | 75 | static int kobil_write(struct tty_struct *tty, struct usb_serial_port *port, |
76 | const unsigned char *buf, int count); | 76 | const unsigned char *buf, int count); |
77 | static int kobil_write_room(struct tty_struct *tty); | 77 | static int kobil_write_room(struct tty_struct *tty); |
78 | static int kobil_ioctl(struct tty_struct *tty, struct file *file, | 78 | static int kobil_ioctl(struct tty_struct *tty, |
79 | unsigned int cmd, unsigned long arg); | 79 | unsigned int cmd, unsigned long arg); |
80 | static int kobil_tiocmget(struct tty_struct *tty, struct file *file); | 80 | static int kobil_tiocmget(struct tty_struct *tty); |
81 | static int kobil_tiocmset(struct tty_struct *tty, struct file *file, | 81 | static int kobil_tiocmset(struct tty_struct *tty, |
82 | unsigned int set, unsigned int clear); | 82 | unsigned int set, unsigned int clear); |
83 | static void kobil_read_int_callback(struct urb *urb); | 83 | static void kobil_read_int_callback(struct urb *urb); |
84 | static void kobil_write_callback(struct urb *purb); | 84 | static void kobil_write_callback(struct urb *purb); |
@@ -504,7 +504,7 @@ static int kobil_write_room(struct tty_struct *tty) | |||
504 | } | 504 | } |
505 | 505 | ||
506 | 506 | ||
507 | static int kobil_tiocmget(struct tty_struct *tty, struct file *file) | 507 | static int kobil_tiocmget(struct tty_struct *tty) |
508 | { | 508 | { |
509 | struct usb_serial_port *port = tty->driver_data; | 509 | struct usb_serial_port *port = tty->driver_data; |
510 | struct kobil_private *priv; | 510 | struct kobil_private *priv; |
@@ -544,7 +544,7 @@ static int kobil_tiocmget(struct tty_struct *tty, struct file *file) | |||
544 | return result; | 544 | return result; |
545 | } | 545 | } |
546 | 546 | ||
547 | static int kobil_tiocmset(struct tty_struct *tty, struct file *file, | 547 | static int kobil_tiocmset(struct tty_struct *tty, |
548 | unsigned int set, unsigned int clear) | 548 | unsigned int set, unsigned int clear) |
549 | { | 549 | { |
550 | struct usb_serial_port *port = tty->driver_data; | 550 | struct usb_serial_port *port = tty->driver_data; |
@@ -668,7 +668,7 @@ static void kobil_set_termios(struct tty_struct *tty, | |||
668 | ); | 668 | ); |
669 | } | 669 | } |
670 | 670 | ||
671 | static int kobil_ioctl(struct tty_struct *tty, struct file *file, | 671 | static int kobil_ioctl(struct tty_struct *tty, |
672 | unsigned int cmd, unsigned long arg) | 672 | unsigned int cmd, unsigned long arg) |
673 | { | 673 | { |
674 | struct usb_serial_port *port = tty->driver_data; | 674 | struct usb_serial_port *port = tty->driver_data; |
diff --git a/drivers/usb/serial/mct_u232.c b/drivers/usb/serial/mct_u232.c index 1e225aacf46e..d2c019637e45 100644 --- a/drivers/usb/serial/mct_u232.c +++ b/drivers/usb/serial/mct_u232.c | |||
@@ -103,8 +103,8 @@ static void mct_u232_read_int_callback(struct urb *urb); | |||
103 | static void mct_u232_set_termios(struct tty_struct *tty, | 103 | static void mct_u232_set_termios(struct tty_struct *tty, |
104 | struct usb_serial_port *port, struct ktermios *old); | 104 | struct usb_serial_port *port, struct ktermios *old); |
105 | static void mct_u232_break_ctl(struct tty_struct *tty, int break_state); | 105 | static void mct_u232_break_ctl(struct tty_struct *tty, int break_state); |
106 | static int mct_u232_tiocmget(struct tty_struct *tty, struct file *file); | 106 | static int mct_u232_tiocmget(struct tty_struct *tty); |
107 | static int mct_u232_tiocmset(struct tty_struct *tty, struct file *file, | 107 | static int mct_u232_tiocmset(struct tty_struct *tty, |
108 | unsigned int set, unsigned int clear); | 108 | unsigned int set, unsigned int clear); |
109 | static int mct_u232_ioctl(struct tty_struct *tty, struct file *file, | 109 | static int mct_u232_ioctl(struct tty_struct *tty, struct file *file, |
110 | unsigned int cmd, unsigned long arg); | 110 | unsigned int cmd, unsigned long arg); |
@@ -790,7 +790,7 @@ static void mct_u232_break_ctl(struct tty_struct *tty, int break_state) | |||
790 | } /* mct_u232_break_ctl */ | 790 | } /* mct_u232_break_ctl */ |
791 | 791 | ||
792 | 792 | ||
793 | static int mct_u232_tiocmget(struct tty_struct *tty, struct file *file) | 793 | static int mct_u232_tiocmget(struct tty_struct *tty) |
794 | { | 794 | { |
795 | struct usb_serial_port *port = tty->driver_data; | 795 | struct usb_serial_port *port = tty->driver_data; |
796 | struct mct_u232_private *priv = usb_get_serial_port_data(port); | 796 | struct mct_u232_private *priv = usb_get_serial_port_data(port); |
@@ -806,7 +806,7 @@ static int mct_u232_tiocmget(struct tty_struct *tty, struct file *file) | |||
806 | return control_state; | 806 | return control_state; |
807 | } | 807 | } |
808 | 808 | ||
809 | static int mct_u232_tiocmset(struct tty_struct *tty, struct file *file, | 809 | static int mct_u232_tiocmset(struct tty_struct *tty, |
810 | unsigned int set, unsigned int clear) | 810 | unsigned int set, unsigned int clear) |
811 | { | 811 | { |
812 | struct usb_serial_port *port = tty->driver_data; | 812 | struct usb_serial_port *port = tty->driver_data; |
diff --git a/drivers/usb/serial/mos7720.c b/drivers/usb/serial/mos7720.c index ae506f4ee29d..40abedbc5943 100644 --- a/drivers/usb/serial/mos7720.c +++ b/drivers/usb/serial/mos7720.c | |||
@@ -1833,7 +1833,7 @@ static int get_lsr_info(struct tty_struct *tty, | |||
1833 | return 0; | 1833 | return 0; |
1834 | } | 1834 | } |
1835 | 1835 | ||
1836 | static int mos7720_tiocmget(struct tty_struct *tty, struct file *file) | 1836 | static int mos7720_tiocmget(struct tty_struct *tty) |
1837 | { | 1837 | { |
1838 | struct usb_serial_port *port = tty->driver_data; | 1838 | struct usb_serial_port *port = tty->driver_data; |
1839 | struct moschip_port *mos7720_port = usb_get_serial_port_data(port); | 1839 | struct moschip_port *mos7720_port = usb_get_serial_port_data(port); |
@@ -1858,14 +1858,14 @@ static int mos7720_tiocmget(struct tty_struct *tty, struct file *file) | |||
1858 | return result; | 1858 | return result; |
1859 | } | 1859 | } |
1860 | 1860 | ||
1861 | static int mos7720_tiocmset(struct tty_struct *tty, struct file *file, | 1861 | static int mos7720_tiocmset(struct tty_struct *tty, |
1862 | unsigned int set, unsigned int clear) | 1862 | unsigned int set, unsigned int clear) |
1863 | { | 1863 | { |
1864 | struct usb_serial_port *port = tty->driver_data; | 1864 | struct usb_serial_port *port = tty->driver_data; |
1865 | struct moschip_port *mos7720_port = usb_get_serial_port_data(port); | 1865 | struct moschip_port *mos7720_port = usb_get_serial_port_data(port); |
1866 | unsigned int mcr ; | 1866 | unsigned int mcr ; |
1867 | dbg("%s - port %d", __func__, port->number); | 1867 | dbg("%s - port %d", __func__, port->number); |
1868 | dbg("he was at tiocmget"); | 1868 | dbg("he was at tiocmset"); |
1869 | 1869 | ||
1870 | mcr = mos7720_port->shadowMCR; | 1870 | mcr = mos7720_port->shadowMCR; |
1871 | 1871 | ||
@@ -1987,7 +1987,7 @@ static int get_serial_info(struct moschip_port *mos7720_port, | |||
1987 | return 0; | 1987 | return 0; |
1988 | } | 1988 | } |
1989 | 1989 | ||
1990 | static int mos7720_ioctl(struct tty_struct *tty, struct file *file, | 1990 | static int mos7720_ioctl(struct tty_struct *tty, |
1991 | unsigned int cmd, unsigned long arg) | 1991 | unsigned int cmd, unsigned long arg) |
1992 | { | 1992 | { |
1993 | struct usb_serial_port *port = tty->driver_data; | 1993 | struct usb_serial_port *port = tty->driver_data; |
diff --git a/drivers/usb/serial/mos7840.c b/drivers/usb/serial/mos7840.c index 5627993f9e41..7b50aa122752 100644 --- a/drivers/usb/serial/mos7840.c +++ b/drivers/usb/serial/mos7840.c | |||
@@ -1644,7 +1644,7 @@ static void mos7840_unthrottle(struct tty_struct *tty) | |||
1644 | } | 1644 | } |
1645 | } | 1645 | } |
1646 | 1646 | ||
1647 | static int mos7840_tiocmget(struct tty_struct *tty, struct file *file) | 1647 | static int mos7840_tiocmget(struct tty_struct *tty) |
1648 | { | 1648 | { |
1649 | struct usb_serial_port *port = tty->driver_data; | 1649 | struct usb_serial_port *port = tty->driver_data; |
1650 | struct moschip_port *mos7840_port; | 1650 | struct moschip_port *mos7840_port; |
@@ -1674,7 +1674,7 @@ static int mos7840_tiocmget(struct tty_struct *tty, struct file *file) | |||
1674 | return result; | 1674 | return result; |
1675 | } | 1675 | } |
1676 | 1676 | ||
1677 | static int mos7840_tiocmset(struct tty_struct *tty, struct file *file, | 1677 | static int mos7840_tiocmset(struct tty_struct *tty, |
1678 | unsigned int set, unsigned int clear) | 1678 | unsigned int set, unsigned int clear) |
1679 | { | 1679 | { |
1680 | struct usb_serial_port *port = tty->driver_data; | 1680 | struct usb_serial_port *port = tty->driver_data; |
@@ -2235,7 +2235,7 @@ static int mos7840_get_icount(struct tty_struct *tty, | |||
2235 | * this function handles any ioctl calls to the driver | 2235 | * this function handles any ioctl calls to the driver |
2236 | *****************************************************************************/ | 2236 | *****************************************************************************/ |
2237 | 2237 | ||
2238 | static int mos7840_ioctl(struct tty_struct *tty, struct file *file, | 2238 | static int mos7840_ioctl(struct tty_struct *tty, |
2239 | unsigned int cmd, unsigned long arg) | 2239 | unsigned int cmd, unsigned long arg) |
2240 | { | 2240 | { |
2241 | struct usb_serial_port *port = tty->driver_data; | 2241 | struct usb_serial_port *port = tty->driver_data; |
diff --git a/drivers/usb/serial/opticon.c b/drivers/usb/serial/opticon.c index ce82396fc4e8..201f6096844b 100644 --- a/drivers/usb/serial/opticon.c +++ b/drivers/usb/serial/opticon.c | |||
@@ -391,7 +391,7 @@ static void opticon_unthrottle(struct tty_struct *tty) | |||
391 | } | 391 | } |
392 | } | 392 | } |
393 | 393 | ||
394 | static int opticon_tiocmget(struct tty_struct *tty, struct file *file) | 394 | static int opticon_tiocmget(struct tty_struct *tty) |
395 | { | 395 | { |
396 | struct usb_serial_port *port = tty->driver_data; | 396 | struct usb_serial_port *port = tty->driver_data; |
397 | struct opticon_private *priv = usb_get_serial_data(port->serial); | 397 | struct opticon_private *priv = usb_get_serial_data(port->serial); |
@@ -468,7 +468,7 @@ static int get_serial_info(struct opticon_private *priv, | |||
468 | return 0; | 468 | return 0; |
469 | } | 469 | } |
470 | 470 | ||
471 | static int opticon_ioctl(struct tty_struct *tty, struct file *file, | 471 | static int opticon_ioctl(struct tty_struct *tty, |
472 | unsigned int cmd, unsigned long arg) | 472 | unsigned int cmd, unsigned long arg) |
473 | { | 473 | { |
474 | struct usb_serial_port *port = tty->driver_data; | 474 | struct usb_serial_port *port = tty->driver_data; |
diff --git a/drivers/usb/serial/oti6858.c b/drivers/usb/serial/oti6858.c index 73613205be7a..4c29e6c2bda7 100644 --- a/drivers/usb/serial/oti6858.c +++ b/drivers/usb/serial/oti6858.c | |||
@@ -135,7 +135,7 @@ static void oti6858_close(struct usb_serial_port *port); | |||
135 | static void oti6858_set_termios(struct tty_struct *tty, | 135 | static void oti6858_set_termios(struct tty_struct *tty, |
136 | struct usb_serial_port *port, struct ktermios *old); | 136 | struct usb_serial_port *port, struct ktermios *old); |
137 | static void oti6858_init_termios(struct tty_struct *tty); | 137 | static void oti6858_init_termios(struct tty_struct *tty); |
138 | static int oti6858_ioctl(struct tty_struct *tty, struct file *file, | 138 | static int oti6858_ioctl(struct tty_struct *tty, |
139 | unsigned int cmd, unsigned long arg); | 139 | unsigned int cmd, unsigned long arg); |
140 | static void oti6858_read_int_callback(struct urb *urb); | 140 | static void oti6858_read_int_callback(struct urb *urb); |
141 | static void oti6858_read_bulk_callback(struct urb *urb); | 141 | static void oti6858_read_bulk_callback(struct urb *urb); |
@@ -144,8 +144,8 @@ static int oti6858_write(struct tty_struct *tty, struct usb_serial_port *port, | |||
144 | const unsigned char *buf, int count); | 144 | const unsigned char *buf, int count); |
145 | static int oti6858_write_room(struct tty_struct *tty); | 145 | static int oti6858_write_room(struct tty_struct *tty); |
146 | static int oti6858_chars_in_buffer(struct tty_struct *tty); | 146 | static int oti6858_chars_in_buffer(struct tty_struct *tty); |
147 | static int oti6858_tiocmget(struct tty_struct *tty, struct file *file); | 147 | static int oti6858_tiocmget(struct tty_struct *tty); |
148 | static int oti6858_tiocmset(struct tty_struct *tty, struct file *file, | 148 | static int oti6858_tiocmset(struct tty_struct *tty, |
149 | unsigned int set, unsigned int clear); | 149 | unsigned int set, unsigned int clear); |
150 | static int oti6858_startup(struct usb_serial *serial); | 150 | static int oti6858_startup(struct usb_serial *serial); |
151 | static void oti6858_release(struct usb_serial *serial); | 151 | static void oti6858_release(struct usb_serial *serial); |
@@ -624,7 +624,7 @@ static void oti6858_close(struct usb_serial_port *port) | |||
624 | usb_kill_urb(port->interrupt_in_urb); | 624 | usb_kill_urb(port->interrupt_in_urb); |
625 | } | 625 | } |
626 | 626 | ||
627 | static int oti6858_tiocmset(struct tty_struct *tty, struct file *file, | 627 | static int oti6858_tiocmset(struct tty_struct *tty, |
628 | unsigned int set, unsigned int clear) | 628 | unsigned int set, unsigned int clear) |
629 | { | 629 | { |
630 | struct usb_serial_port *port = tty->driver_data; | 630 | struct usb_serial_port *port = tty->driver_data; |
@@ -657,7 +657,7 @@ static int oti6858_tiocmset(struct tty_struct *tty, struct file *file, | |||
657 | return 0; | 657 | return 0; |
658 | } | 658 | } |
659 | 659 | ||
660 | static int oti6858_tiocmget(struct tty_struct *tty, struct file *file) | 660 | static int oti6858_tiocmget(struct tty_struct *tty) |
661 | { | 661 | { |
662 | struct usb_serial_port *port = tty->driver_data; | 662 | struct usb_serial_port *port = tty->driver_data; |
663 | struct oti6858_private *priv = usb_get_serial_port_data(port); | 663 | struct oti6858_private *priv = usb_get_serial_port_data(port); |
@@ -728,7 +728,7 @@ static int wait_modem_info(struct usb_serial_port *port, unsigned int arg) | |||
728 | return 0; | 728 | return 0; |
729 | } | 729 | } |
730 | 730 | ||
731 | static int oti6858_ioctl(struct tty_struct *tty, struct file *file, | 731 | static int oti6858_ioctl(struct tty_struct *tty, |
732 | unsigned int cmd, unsigned long arg) | 732 | unsigned int cmd, unsigned long arg) |
733 | { | 733 | { |
734 | struct usb_serial_port *port = tty->driver_data; | 734 | struct usb_serial_port *port = tty->driver_data; |
diff --git a/drivers/usb/serial/pl2303.c b/drivers/usb/serial/pl2303.c index 08c9181b8e48..30461fcc2206 100644 --- a/drivers/usb/serial/pl2303.c +++ b/drivers/usb/serial/pl2303.c | |||
@@ -505,7 +505,7 @@ static int pl2303_open(struct tty_struct *tty, struct usb_serial_port *port) | |||
505 | return 0; | 505 | return 0; |
506 | } | 506 | } |
507 | 507 | ||
508 | static int pl2303_tiocmset(struct tty_struct *tty, struct file *file, | 508 | static int pl2303_tiocmset(struct tty_struct *tty, |
509 | unsigned int set, unsigned int clear) | 509 | unsigned int set, unsigned int clear) |
510 | { | 510 | { |
511 | struct usb_serial_port *port = tty->driver_data; | 511 | struct usb_serial_port *port = tty->driver_data; |
@@ -531,7 +531,7 @@ static int pl2303_tiocmset(struct tty_struct *tty, struct file *file, | |||
531 | return set_control_lines(port->serial->dev, control); | 531 | return set_control_lines(port->serial->dev, control); |
532 | } | 532 | } |
533 | 533 | ||
534 | static int pl2303_tiocmget(struct tty_struct *tty, struct file *file) | 534 | static int pl2303_tiocmget(struct tty_struct *tty) |
535 | { | 535 | { |
536 | struct usb_serial_port *port = tty->driver_data; | 536 | struct usb_serial_port *port = tty->driver_data; |
537 | struct pl2303_private *priv = usb_get_serial_port_data(port); | 537 | struct pl2303_private *priv = usb_get_serial_port_data(port); |
@@ -606,7 +606,7 @@ static int wait_modem_info(struct usb_serial_port *port, unsigned int arg) | |||
606 | return 0; | 606 | return 0; |
607 | } | 607 | } |
608 | 608 | ||
609 | static int pl2303_ioctl(struct tty_struct *tty, struct file *file, | 609 | static int pl2303_ioctl(struct tty_struct *tty, |
610 | unsigned int cmd, unsigned long arg) | 610 | unsigned int cmd, unsigned long arg) |
611 | { | 611 | { |
612 | struct serial_struct ser; | 612 | struct serial_struct ser; |
diff --git a/drivers/usb/serial/sierra.c b/drivers/usb/serial/sierra.c index 5b88b6836a81..d5d136a53b61 100644 --- a/drivers/usb/serial/sierra.c +++ b/drivers/usb/serial/sierra.c | |||
@@ -395,7 +395,7 @@ static void sierra_set_termios(struct tty_struct *tty, | |||
395 | sierra_send_setup(port); | 395 | sierra_send_setup(port); |
396 | } | 396 | } |
397 | 397 | ||
398 | static int sierra_tiocmget(struct tty_struct *tty, struct file *file) | 398 | static int sierra_tiocmget(struct tty_struct *tty) |
399 | { | 399 | { |
400 | struct usb_serial_port *port = tty->driver_data; | 400 | struct usb_serial_port *port = tty->driver_data; |
401 | unsigned int value; | 401 | unsigned int value; |
@@ -414,7 +414,7 @@ static int sierra_tiocmget(struct tty_struct *tty, struct file *file) | |||
414 | return value; | 414 | return value; |
415 | } | 415 | } |
416 | 416 | ||
417 | static int sierra_tiocmset(struct tty_struct *tty, struct file *file, | 417 | static int sierra_tiocmset(struct tty_struct *tty, |
418 | unsigned int set, unsigned int clear) | 418 | unsigned int set, unsigned int clear) |
419 | { | 419 | { |
420 | struct usb_serial_port *port = tty->driver_data; | 420 | struct usb_serial_port *port = tty->driver_data; |
diff --git a/drivers/usb/serial/spcp8x5.c b/drivers/usb/serial/spcp8x5.c index cbfb70bffdd0..180ea6c7911c 100644 --- a/drivers/usb/serial/spcp8x5.c +++ b/drivers/usb/serial/spcp8x5.c | |||
@@ -576,7 +576,7 @@ static int spcp8x5_wait_modem_info(struct usb_serial_port *port, | |||
576 | return 0; | 576 | return 0; |
577 | } | 577 | } |
578 | 578 | ||
579 | static int spcp8x5_ioctl(struct tty_struct *tty, struct file *file, | 579 | static int spcp8x5_ioctl(struct tty_struct *tty, |
580 | unsigned int cmd, unsigned long arg) | 580 | unsigned int cmd, unsigned long arg) |
581 | { | 581 | { |
582 | struct usb_serial_port *port = tty->driver_data; | 582 | struct usb_serial_port *port = tty->driver_data; |
@@ -595,7 +595,7 @@ static int spcp8x5_ioctl(struct tty_struct *tty, struct file *file, | |||
595 | return -ENOIOCTLCMD; | 595 | return -ENOIOCTLCMD; |
596 | } | 596 | } |
597 | 597 | ||
598 | static int spcp8x5_tiocmset(struct tty_struct *tty, struct file *file, | 598 | static int spcp8x5_tiocmset(struct tty_struct *tty, |
599 | unsigned int set, unsigned int clear) | 599 | unsigned int set, unsigned int clear) |
600 | { | 600 | { |
601 | struct usb_serial_port *port = tty->driver_data; | 601 | struct usb_serial_port *port = tty->driver_data; |
@@ -618,7 +618,7 @@ static int spcp8x5_tiocmset(struct tty_struct *tty, struct file *file, | |||
618 | return spcp8x5_set_ctrlLine(port->serial->dev, control , priv->type); | 618 | return spcp8x5_set_ctrlLine(port->serial->dev, control , priv->type); |
619 | } | 619 | } |
620 | 620 | ||
621 | static int spcp8x5_tiocmget(struct tty_struct *tty, struct file *file) | 621 | static int spcp8x5_tiocmget(struct tty_struct *tty) |
622 | { | 622 | { |
623 | struct usb_serial_port *port = tty->driver_data; | 623 | struct usb_serial_port *port = tty->driver_data; |
624 | struct spcp8x5_private *priv = usb_get_serial_port_data(port); | 624 | struct spcp8x5_private *priv = usb_get_serial_port_data(port); |
diff --git a/drivers/usb/serial/ssu100.c b/drivers/usb/serial/ssu100.c index 8359ec798959..87362e48796e 100644 --- a/drivers/usb/serial/ssu100.c +++ b/drivers/usb/serial/ssu100.c | |||
@@ -439,7 +439,7 @@ static int ssu100_get_icount(struct tty_struct *tty, | |||
439 | 439 | ||
440 | 440 | ||
441 | 441 | ||
442 | static int ssu100_ioctl(struct tty_struct *tty, struct file *file, | 442 | static int ssu100_ioctl(struct tty_struct *tty, |
443 | unsigned int cmd, unsigned long arg) | 443 | unsigned int cmd, unsigned long arg) |
444 | { | 444 | { |
445 | struct usb_serial_port *port = tty->driver_data; | 445 | struct usb_serial_port *port = tty->driver_data; |
@@ -484,7 +484,7 @@ static int ssu100_attach(struct usb_serial *serial) | |||
484 | return ssu100_initdevice(serial->dev); | 484 | return ssu100_initdevice(serial->dev); |
485 | } | 485 | } |
486 | 486 | ||
487 | static int ssu100_tiocmget(struct tty_struct *tty, struct file *file) | 487 | static int ssu100_tiocmget(struct tty_struct *tty) |
488 | { | 488 | { |
489 | struct usb_serial_port *port = tty->driver_data; | 489 | struct usb_serial_port *port = tty->driver_data; |
490 | struct usb_device *dev = port->serial->dev; | 490 | struct usb_device *dev = port->serial->dev; |
@@ -517,7 +517,7 @@ mget_out: | |||
517 | return r; | 517 | return r; |
518 | } | 518 | } |
519 | 519 | ||
520 | static int ssu100_tiocmset(struct tty_struct *tty, struct file *file, | 520 | static int ssu100_tiocmset(struct tty_struct *tty, |
521 | unsigned int set, unsigned int clear) | 521 | unsigned int set, unsigned int clear) |
522 | { | 522 | { |
523 | struct usb_serial_port *port = tty->driver_data; | 523 | struct usb_serial_port *port = tty->driver_data; |
diff --git a/drivers/usb/serial/ti_usb_3410_5052.c b/drivers/usb/serial/ti_usb_3410_5052.c index a910004f4079..c6d92a530086 100644 --- a/drivers/usb/serial/ti_usb_3410_5052.c +++ b/drivers/usb/serial/ti_usb_3410_5052.c | |||
@@ -106,14 +106,14 @@ static int ti_write_room(struct tty_struct *tty); | |||
106 | static int ti_chars_in_buffer(struct tty_struct *tty); | 106 | static int ti_chars_in_buffer(struct tty_struct *tty); |
107 | static void ti_throttle(struct tty_struct *tty); | 107 | static void ti_throttle(struct tty_struct *tty); |
108 | static void ti_unthrottle(struct tty_struct *tty); | 108 | static void ti_unthrottle(struct tty_struct *tty); |
109 | static int ti_ioctl(struct tty_struct *tty, struct file *file, | 109 | static int ti_ioctl(struct tty_struct *tty, |
110 | unsigned int cmd, unsigned long arg); | 110 | unsigned int cmd, unsigned long arg); |
111 | static int ti_get_icount(struct tty_struct *tty, | 111 | static int ti_get_icount(struct tty_struct *tty, |
112 | struct serial_icounter_struct *icount); | 112 | struct serial_icounter_struct *icount); |
113 | static void ti_set_termios(struct tty_struct *tty, | 113 | static void ti_set_termios(struct tty_struct *tty, |
114 | struct usb_serial_port *port, struct ktermios *old_termios); | 114 | struct usb_serial_port *port, struct ktermios *old_termios); |
115 | static int ti_tiocmget(struct tty_struct *tty, struct file *file); | 115 | static int ti_tiocmget(struct tty_struct *tty); |
116 | static int ti_tiocmset(struct tty_struct *tty, struct file *file, | 116 | static int ti_tiocmset(struct tty_struct *tty, |
117 | unsigned int set, unsigned int clear); | 117 | unsigned int set, unsigned int clear); |
118 | static void ti_break(struct tty_struct *tty, int break_state); | 118 | static void ti_break(struct tty_struct *tty, int break_state); |
119 | static void ti_interrupt_callback(struct urb *urb); | 119 | static void ti_interrupt_callback(struct urb *urb); |
@@ -818,7 +818,7 @@ static int ti_get_icount(struct tty_struct *tty, | |||
818 | return 0; | 818 | return 0; |
819 | } | 819 | } |
820 | 820 | ||
821 | static int ti_ioctl(struct tty_struct *tty, struct file *file, | 821 | static int ti_ioctl(struct tty_struct *tty, |
822 | unsigned int cmd, unsigned long arg) | 822 | unsigned int cmd, unsigned long arg) |
823 | { | 823 | { |
824 | struct usb_serial_port *port = tty->driver_data; | 824 | struct usb_serial_port *port = tty->driver_data; |
@@ -1000,7 +1000,7 @@ static void ti_set_termios(struct tty_struct *tty, | |||
1000 | } | 1000 | } |
1001 | 1001 | ||
1002 | 1002 | ||
1003 | static int ti_tiocmget(struct tty_struct *tty, struct file *file) | 1003 | static int ti_tiocmget(struct tty_struct *tty) |
1004 | { | 1004 | { |
1005 | struct usb_serial_port *port = tty->driver_data; | 1005 | struct usb_serial_port *port = tty->driver_data; |
1006 | struct ti_port *tport = usb_get_serial_port_data(port); | 1006 | struct ti_port *tport = usb_get_serial_port_data(port); |
@@ -1033,8 +1033,8 @@ static int ti_tiocmget(struct tty_struct *tty, struct file *file) | |||
1033 | } | 1033 | } |
1034 | 1034 | ||
1035 | 1035 | ||
1036 | static int ti_tiocmset(struct tty_struct *tty, struct file *file, | 1036 | static int ti_tiocmset(struct tty_struct *tty, |
1037 | unsigned int set, unsigned int clear) | 1037 | unsigned int set, unsigned int clear) |
1038 | { | 1038 | { |
1039 | struct usb_serial_port *port = tty->driver_data; | 1039 | struct usb_serial_port *port = tty->driver_data; |
1040 | struct ti_port *tport = usb_get_serial_port_data(port); | 1040 | struct ti_port *tport = usb_get_serial_port_data(port); |
diff --git a/drivers/usb/serial/usb-serial.c b/drivers/usb/serial/usb-serial.c index 2ff90a9c8f47..1c031309ab25 100644 --- a/drivers/usb/serial/usb-serial.c +++ b/drivers/usb/serial/usb-serial.c | |||
@@ -406,7 +406,7 @@ static void serial_unthrottle(struct tty_struct *tty) | |||
406 | port->serial->type->unthrottle(tty); | 406 | port->serial->type->unthrottle(tty); |
407 | } | 407 | } |
408 | 408 | ||
409 | static int serial_ioctl(struct tty_struct *tty, struct file *file, | 409 | static int serial_ioctl(struct tty_struct *tty, |
410 | unsigned int cmd, unsigned long arg) | 410 | unsigned int cmd, unsigned long arg) |
411 | { | 411 | { |
412 | struct usb_serial_port *port = tty->driver_data; | 412 | struct usb_serial_port *port = tty->driver_data; |
@@ -417,7 +417,7 @@ static int serial_ioctl(struct tty_struct *tty, struct file *file, | |||
417 | /* pass on to the driver specific version of this function | 417 | /* pass on to the driver specific version of this function |
418 | if it is available */ | 418 | if it is available */ |
419 | if (port->serial->type->ioctl) { | 419 | if (port->serial->type->ioctl) { |
420 | retval = port->serial->type->ioctl(tty, file, cmd, arg); | 420 | retval = port->serial->type->ioctl(tty, cmd, arg); |
421 | } else | 421 | } else |
422 | retval = -ENOIOCTLCMD; | 422 | retval = -ENOIOCTLCMD; |
423 | return retval; | 423 | return retval; |
@@ -496,18 +496,18 @@ static const struct file_operations serial_proc_fops = { | |||
496 | .release = single_release, | 496 | .release = single_release, |
497 | }; | 497 | }; |
498 | 498 | ||
499 | static int serial_tiocmget(struct tty_struct *tty, struct file *file) | 499 | static int serial_tiocmget(struct tty_struct *tty) |
500 | { | 500 | { |
501 | struct usb_serial_port *port = tty->driver_data; | 501 | struct usb_serial_port *port = tty->driver_data; |
502 | 502 | ||
503 | dbg("%s - port %d", __func__, port->number); | 503 | dbg("%s - port %d", __func__, port->number); |
504 | 504 | ||
505 | if (port->serial->type->tiocmget) | 505 | if (port->serial->type->tiocmget) |
506 | return port->serial->type->tiocmget(tty, file); | 506 | return port->serial->type->tiocmget(tty); |
507 | return -EINVAL; | 507 | return -EINVAL; |
508 | } | 508 | } |
509 | 509 | ||
510 | static int serial_tiocmset(struct tty_struct *tty, struct file *file, | 510 | static int serial_tiocmset(struct tty_struct *tty, |
511 | unsigned int set, unsigned int clear) | 511 | unsigned int set, unsigned int clear) |
512 | { | 512 | { |
513 | struct usb_serial_port *port = tty->driver_data; | 513 | struct usb_serial_port *port = tty->driver_data; |
@@ -515,7 +515,7 @@ static int serial_tiocmset(struct tty_struct *tty, struct file *file, | |||
515 | dbg("%s - port %d", __func__, port->number); | 515 | dbg("%s - port %d", __func__, port->number); |
516 | 516 | ||
517 | if (port->serial->type->tiocmset) | 517 | if (port->serial->type->tiocmset) |
518 | return port->serial->type->tiocmset(tty, file, set, clear); | 518 | return port->serial->type->tiocmset(tty, set, clear); |
519 | return -EINVAL; | 519 | return -EINVAL; |
520 | } | 520 | } |
521 | 521 | ||
diff --git a/drivers/usb/serial/usb-wwan.h b/drivers/usb/serial/usb-wwan.h index 3ab77c5d9819..c47b6ec03063 100644 --- a/drivers/usb/serial/usb-wwan.h +++ b/drivers/usb/serial/usb-wwan.h | |||
@@ -15,10 +15,10 @@ extern int usb_wwan_write_room(struct tty_struct *tty); | |||
15 | extern void usb_wwan_set_termios(struct tty_struct *tty, | 15 | extern void usb_wwan_set_termios(struct tty_struct *tty, |
16 | struct usb_serial_port *port, | 16 | struct usb_serial_port *port, |
17 | struct ktermios *old); | 17 | struct ktermios *old); |
18 | extern int usb_wwan_tiocmget(struct tty_struct *tty, struct file *file); | 18 | extern int usb_wwan_tiocmget(struct tty_struct *tty); |
19 | extern int usb_wwan_tiocmset(struct tty_struct *tty, struct file *file, | 19 | extern int usb_wwan_tiocmset(struct tty_struct *tty, |
20 | unsigned int set, unsigned int clear); | 20 | unsigned int set, unsigned int clear); |
21 | extern int usb_wwan_ioctl(struct tty_struct *tty, struct file *file, | 21 | extern int usb_wwan_ioctl(struct tty_struct *tty, |
22 | unsigned int cmd, unsigned long arg); | 22 | unsigned int cmd, unsigned long arg); |
23 | extern int usb_wwan_send_setup(struct usb_serial_port *port); | 23 | extern int usb_wwan_send_setup(struct usb_serial_port *port); |
24 | extern int usb_wwan_write(struct tty_struct *tty, struct usb_serial_port *port, | 24 | extern int usb_wwan_write(struct tty_struct *tty, struct usb_serial_port *port, |
diff --git a/drivers/usb/serial/usb_wwan.c b/drivers/usb/serial/usb_wwan.c index eb95aecc0015..a65ddd543869 100644 --- a/drivers/usb/serial/usb_wwan.c +++ b/drivers/usb/serial/usb_wwan.c | |||
@@ -79,7 +79,7 @@ void usb_wwan_set_termios(struct tty_struct *tty, | |||
79 | } | 79 | } |
80 | EXPORT_SYMBOL(usb_wwan_set_termios); | 80 | EXPORT_SYMBOL(usb_wwan_set_termios); |
81 | 81 | ||
82 | int usb_wwan_tiocmget(struct tty_struct *tty, struct file *file) | 82 | int usb_wwan_tiocmget(struct tty_struct *tty) |
83 | { | 83 | { |
84 | struct usb_serial_port *port = tty->driver_data; | 84 | struct usb_serial_port *port = tty->driver_data; |
85 | unsigned int value; | 85 | unsigned int value; |
@@ -98,7 +98,7 @@ int usb_wwan_tiocmget(struct tty_struct *tty, struct file *file) | |||
98 | } | 98 | } |
99 | EXPORT_SYMBOL(usb_wwan_tiocmget); | 99 | EXPORT_SYMBOL(usb_wwan_tiocmget); |
100 | 100 | ||
101 | int usb_wwan_tiocmset(struct tty_struct *tty, struct file *file, | 101 | int usb_wwan_tiocmset(struct tty_struct *tty, |
102 | unsigned int set, unsigned int clear) | 102 | unsigned int set, unsigned int clear) |
103 | { | 103 | { |
104 | struct usb_serial_port *port = tty->driver_data; | 104 | struct usb_serial_port *port = tty->driver_data; |
@@ -178,7 +178,7 @@ static int set_serial_info(struct usb_serial_port *port, | |||
178 | return retval; | 178 | return retval; |
179 | } | 179 | } |
180 | 180 | ||
181 | int usb_wwan_ioctl(struct tty_struct *tty, struct file *file, | 181 | int usb_wwan_ioctl(struct tty_struct *tty, |
182 | unsigned int cmd, unsigned long arg) | 182 | unsigned int cmd, unsigned long arg) |
183 | { | 183 | { |
184 | struct usb_serial_port *port = tty->driver_data; | 184 | struct usb_serial_port *port = tty->driver_data; |
diff --git a/drivers/usb/serial/whiteheat.c b/drivers/usb/serial/whiteheat.c index 3f9ac88d588c..5b073bcc807b 100644 --- a/drivers/usb/serial/whiteheat.c +++ b/drivers/usb/serial/whiteheat.c | |||
@@ -152,12 +152,12 @@ static int whiteheat_write(struct tty_struct *tty, | |||
152 | struct usb_serial_port *port, | 152 | struct usb_serial_port *port, |
153 | const unsigned char *buf, int count); | 153 | const unsigned char *buf, int count); |
154 | static int whiteheat_write_room(struct tty_struct *tty); | 154 | static int whiteheat_write_room(struct tty_struct *tty); |
155 | static int whiteheat_ioctl(struct tty_struct *tty, struct file *file, | 155 | static int whiteheat_ioctl(struct tty_struct *tty, |
156 | unsigned int cmd, unsigned long arg); | 156 | unsigned int cmd, unsigned long arg); |
157 | static void whiteheat_set_termios(struct tty_struct *tty, | 157 | static void whiteheat_set_termios(struct tty_struct *tty, |
158 | struct usb_serial_port *port, struct ktermios *old); | 158 | struct usb_serial_port *port, struct ktermios *old); |
159 | static int whiteheat_tiocmget(struct tty_struct *tty, struct file *file); | 159 | static int whiteheat_tiocmget(struct tty_struct *tty); |
160 | static int whiteheat_tiocmset(struct tty_struct *tty, struct file *file, | 160 | static int whiteheat_tiocmset(struct tty_struct *tty, |
161 | unsigned int set, unsigned int clear); | 161 | unsigned int set, unsigned int clear); |
162 | static void whiteheat_break_ctl(struct tty_struct *tty, int break_state); | 162 | static void whiteheat_break_ctl(struct tty_struct *tty, int break_state); |
163 | static int whiteheat_chars_in_buffer(struct tty_struct *tty); | 163 | static int whiteheat_chars_in_buffer(struct tty_struct *tty); |
@@ -833,7 +833,7 @@ static int whiteheat_write_room(struct tty_struct *tty) | |||
833 | return (room); | 833 | return (room); |
834 | } | 834 | } |
835 | 835 | ||
836 | static int whiteheat_tiocmget(struct tty_struct *tty, struct file *file) | 836 | static int whiteheat_tiocmget(struct tty_struct *tty) |
837 | { | 837 | { |
838 | struct usb_serial_port *port = tty->driver_data; | 838 | struct usb_serial_port *port = tty->driver_data; |
839 | struct whiteheat_private *info = usb_get_serial_port_data(port); | 839 | struct whiteheat_private *info = usb_get_serial_port_data(port); |
@@ -850,7 +850,7 @@ static int whiteheat_tiocmget(struct tty_struct *tty, struct file *file) | |||
850 | return modem_signals; | 850 | return modem_signals; |
851 | } | 851 | } |
852 | 852 | ||
853 | static int whiteheat_tiocmset(struct tty_struct *tty, struct file *file, | 853 | static int whiteheat_tiocmset(struct tty_struct *tty, |
854 | unsigned int set, unsigned int clear) | 854 | unsigned int set, unsigned int clear) |
855 | { | 855 | { |
856 | struct usb_serial_port *port = tty->driver_data; | 856 | struct usb_serial_port *port = tty->driver_data; |
@@ -874,7 +874,7 @@ static int whiteheat_tiocmset(struct tty_struct *tty, struct file *file, | |||
874 | } | 874 | } |
875 | 875 | ||
876 | 876 | ||
877 | static int whiteheat_ioctl(struct tty_struct *tty, struct file *file, | 877 | static int whiteheat_ioctl(struct tty_struct *tty, |
878 | unsigned int cmd, unsigned long arg) | 878 | unsigned int cmd, unsigned long arg) |
879 | { | 879 | { |
880 | struct usb_serial_port *port = tty->driver_data; | 880 | struct usb_serial_port *port = tty->driver_data; |