diff options
author | David Howells <dhowells@redhat.com> | 2006-10-05 09:55:46 -0400 |
---|---|---|
committer | David Howells <dhowells@warthog.cambridge.redhat.com> | 2006-10-05 10:10:12 -0400 |
commit | 7d12e780e003f93433d49ce78cfedf4b4c52adc5 (patch) | |
tree | 6748550400445c11a306b132009f3001e3525df8 /drivers/usb/serial | |
parent | da482792a6d1a3fbaaa25fae867b343fb4db3246 (diff) |
IRQ: Maintain regs pointer globally rather than passing to IRQ handlers
Maintain a per-CPU global "struct pt_regs *" variable which can be used instead
of passing regs around manually through all ~1800 interrupt handlers in the
Linux kernel.
The regs pointer is used in few places, but it potentially costs both stack
space and code to pass it around. On the FRV arch, removing the regs parameter
from all the genirq function results in a 20% speed up of the IRQ exit path
(ie: from leaving timer_interrupt() to leaving do_IRQ()).
Where appropriate, an arch may override the generic storage facility and do
something different with the variable. On FRV, for instance, the address is
maintained in GR28 at all times inside the kernel as part of general exception
handling.
Having looked over the code, it appears that the parameter may be handed down
through up to twenty or so layers of functions. Consider a USB character
device attached to a USB hub, attached to a USB controller that posts its
interrupts through a cascaded auxiliary interrupt controller. A character
device driver may want to pass regs to the sysrq handler through the input
layer which adds another few layers of parameter passing.
I've build this code with allyesconfig for x86_64 and i386. I've runtested the
main part of the code on FRV and i386, though I can't test most of the drivers.
I've also done partial conversion for powerpc and MIPS - these at least compile
with minimal configurations.
This will affect all archs. Mostly the changes should be relatively easy.
Take do_IRQ(), store the regs pointer at the beginning, saving the old one:
struct pt_regs *old_regs = set_irq_regs(regs);
And put the old one back at the end:
set_irq_regs(old_regs);
Don't pass regs through to generic_handle_irq() or __do_IRQ().
In timer_interrupt(), this sort of change will be necessary:
- update_process_times(user_mode(regs));
- profile_tick(CPU_PROFILING, regs);
+ update_process_times(user_mode(get_irq_regs()));
+ profile_tick(CPU_PROFILING);
I'd like to move update_process_times()'s use of get_irq_regs() into itself,
except that i386, alone of the archs, uses something other than user_mode().
Some notes on the interrupt handling in the drivers:
(*) input_dev() is now gone entirely. The regs pointer is no longer stored in
the input_dev struct.
(*) finish_unlinks() in drivers/usb/host/ohci-q.c needs checking. It does
something different depending on whether it's been supplied with a regs
pointer or not.
(*) Various IRQ handler function pointers have been moved to type
irq_handler_t.
Signed-Off-By: David Howells <dhowells@redhat.com>
(cherry picked from 1b16e7ac850969f38b375e511e3fa2f474a33867 commit)
Diffstat (limited to 'drivers/usb/serial')
29 files changed, 130 insertions, 131 deletions
diff --git a/drivers/usb/serial/aircable.c b/drivers/usb/serial/aircable.c index 2ccd9ded52a5..812275509137 100644 --- a/drivers/usb/serial/aircable.c +++ b/drivers/usb/serial/aircable.c | |||
@@ -403,7 +403,7 @@ static int aircable_write(struct usb_serial_port *port, | |||
403 | 403 | ||
404 | } | 404 | } |
405 | 405 | ||
406 | static void aircable_write_bulk_callback(struct urb *urb, struct pt_regs *regs) | 406 | static void aircable_write_bulk_callback(struct urb *urb) |
407 | { | 407 | { |
408 | struct usb_serial_port *port = urb->context; | 408 | struct usb_serial_port *port = urb->context; |
409 | int result; | 409 | int result; |
@@ -444,7 +444,7 @@ static void aircable_write_bulk_callback(struct urb *urb, struct pt_regs *regs) | |||
444 | aircable_send(port); | 444 | aircable_send(port); |
445 | } | 445 | } |
446 | 446 | ||
447 | static void aircable_read_bulk_callback(struct urb *urb, struct pt_regs *regs) | 447 | static void aircable_read_bulk_callback(struct urb *urb) |
448 | { | 448 | { |
449 | struct usb_serial_port *port = urb->context; | 449 | struct usb_serial_port *port = urb->context; |
450 | struct aircable_private *priv = usb_get_serial_port_data(port); | 450 | struct aircable_private *priv = usb_get_serial_port_data(port); |
diff --git a/drivers/usb/serial/airprime.c b/drivers/usb/serial/airprime.c index 6e1a84a858d4..2c19f19b255c 100644 --- a/drivers/usb/serial/airprime.c +++ b/drivers/usb/serial/airprime.c | |||
@@ -46,7 +46,7 @@ struct airprime_private { | |||
46 | struct urb *read_urbp[NUM_READ_URBS]; | 46 | struct urb *read_urbp[NUM_READ_URBS]; |
47 | }; | 47 | }; |
48 | 48 | ||
49 | static void airprime_read_bulk_callback(struct urb *urb, struct pt_regs *regs) | 49 | static void airprime_read_bulk_callback(struct urb *urb) |
50 | { | 50 | { |
51 | struct usb_serial_port *port = urb->context; | 51 | struct usb_serial_port *port = urb->context; |
52 | unsigned char *data = urb->transfer_buffer; | 52 | unsigned char *data = urb->transfer_buffer; |
@@ -80,7 +80,7 @@ static void airprime_read_bulk_callback(struct urb *urb, struct pt_regs *regs) | |||
80 | return; | 80 | return; |
81 | } | 81 | } |
82 | 82 | ||
83 | static void airprime_write_bulk_callback(struct urb *urb, struct pt_regs *regs) | 83 | static void airprime_write_bulk_callback(struct urb *urb) |
84 | { | 84 | { |
85 | struct usb_serial_port *port = urb->context; | 85 | struct usb_serial_port *port = urb->context; |
86 | struct airprime_private *priv = usb_get_serial_port_data(port); | 86 | struct airprime_private *priv = usb_get_serial_port_data(port); |
diff --git a/drivers/usb/serial/belkin_sa.c b/drivers/usb/serial/belkin_sa.c index 70ece9e01ce4..8835bb58ca9b 100644 --- a/drivers/usb/serial/belkin_sa.c +++ b/drivers/usb/serial/belkin_sa.c | |||
@@ -91,7 +91,7 @@ static int belkin_sa_startup (struct usb_serial *serial); | |||
91 | static void belkin_sa_shutdown (struct usb_serial *serial); | 91 | 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, struct pt_regs *regs); | 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 termios * 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 ); |
@@ -248,7 +248,7 @@ static void belkin_sa_close (struct usb_serial_port *port, struct file *filp) | |||
248 | } /* belkin_sa_close */ | 248 | } /* belkin_sa_close */ |
249 | 249 | ||
250 | 250 | ||
251 | static void belkin_sa_read_int_callback (struct urb *urb, struct pt_regs *regs) | 251 | static void belkin_sa_read_int_callback (struct urb *urb) |
252 | { | 252 | { |
253 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; | 253 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; |
254 | struct belkin_sa_private *priv; | 254 | struct belkin_sa_private *priv; |
diff --git a/drivers/usb/serial/cyberjack.c b/drivers/usb/serial/cyberjack.c index d954ec34b018..a63c3286caa0 100644 --- a/drivers/usb/serial/cyberjack.c +++ b/drivers/usb/serial/cyberjack.c | |||
@@ -63,9 +63,9 @@ static int cyberjack_open (struct usb_serial_port *port, struct file *filp); | |||
63 | static void cyberjack_close (struct usb_serial_port *port, struct file *filp); | 63 | static void cyberjack_close (struct usb_serial_port *port, struct file *filp); |
64 | static int cyberjack_write (struct usb_serial_port *port, const unsigned char *buf, int count); | 64 | static int cyberjack_write (struct usb_serial_port *port, const unsigned char *buf, int count); |
65 | static int cyberjack_write_room( struct usb_serial_port *port ); | 65 | static int cyberjack_write_room( struct usb_serial_port *port ); |
66 | static void cyberjack_read_int_callback (struct urb *urb, struct pt_regs *regs); | 66 | static void cyberjack_read_int_callback (struct urb *urb); |
67 | static void cyberjack_read_bulk_callback (struct urb *urb, struct pt_regs *regs); | 67 | static void cyberjack_read_bulk_callback (struct urb *urb); |
68 | static void cyberjack_write_bulk_callback (struct urb *urb, struct pt_regs *regs); | 68 | static void cyberjack_write_bulk_callback (struct urb *urb); |
69 | 69 | ||
70 | static struct usb_device_id id_table [] = { | 70 | static struct usb_device_id id_table [] = { |
71 | { USB_DEVICE(CYBERJACK_VENDOR_ID, CYBERJACK_PRODUCT_ID) }, | 71 | { USB_DEVICE(CYBERJACK_VENDOR_ID, CYBERJACK_PRODUCT_ID) }, |
@@ -299,7 +299,7 @@ static int cyberjack_write_room( struct usb_serial_port *port ) | |||
299 | return CYBERJACK_LOCAL_BUF_SIZE; | 299 | return CYBERJACK_LOCAL_BUF_SIZE; |
300 | } | 300 | } |
301 | 301 | ||
302 | static void cyberjack_read_int_callback( struct urb *urb, struct pt_regs *regs ) | 302 | static void cyberjack_read_int_callback( struct urb *urb ) |
303 | { | 303 | { |
304 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; | 304 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; |
305 | struct cyberjack_private *priv = usb_get_serial_port_data(port); | 305 | struct cyberjack_private *priv = usb_get_serial_port_data(port); |
@@ -356,7 +356,7 @@ resubmit: | |||
356 | dbg("%s - usb_submit_urb(int urb)", __FUNCTION__); | 356 | dbg("%s - usb_submit_urb(int urb)", __FUNCTION__); |
357 | } | 357 | } |
358 | 358 | ||
359 | static void cyberjack_read_bulk_callback (struct urb *urb, struct pt_regs *regs) | 359 | static void cyberjack_read_bulk_callback (struct urb *urb) |
360 | { | 360 | { |
361 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; | 361 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; |
362 | struct cyberjack_private *priv = usb_get_serial_port_data(port); | 362 | struct cyberjack_private *priv = usb_get_serial_port_data(port); |
@@ -406,7 +406,7 @@ static void cyberjack_read_bulk_callback (struct urb *urb, struct pt_regs *regs) | |||
406 | } | 406 | } |
407 | } | 407 | } |
408 | 408 | ||
409 | static void cyberjack_write_bulk_callback (struct urb *urb, struct pt_regs *regs) | 409 | static void cyberjack_write_bulk_callback (struct urb *urb) |
410 | { | 410 | { |
411 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; | 411 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; |
412 | struct cyberjack_private *priv = usb_get_serial_port_data(port); | 412 | struct cyberjack_private *priv = usb_get_serial_port_data(port); |
diff --git a/drivers/usb/serial/cypress_m8.c b/drivers/usb/serial/cypress_m8.c index e1173c1aee37..f2e89a083659 100644 --- a/drivers/usb/serial/cypress_m8.c +++ b/drivers/usb/serial/cypress_m8.c | |||
@@ -172,8 +172,8 @@ static int cypress_chars_in_buffer (struct usb_serial_port *port); | |||
172 | static void cypress_throttle (struct usb_serial_port *port); | 172 | static void cypress_throttle (struct usb_serial_port *port); |
173 | static void cypress_unthrottle (struct usb_serial_port *port); | 173 | static void cypress_unthrottle (struct usb_serial_port *port); |
174 | static void cypress_set_dead (struct usb_serial_port *port); | 174 | static void cypress_set_dead (struct usb_serial_port *port); |
175 | static void cypress_read_int_callback (struct urb *urb, struct pt_regs *regs); | 175 | static void cypress_read_int_callback (struct urb *urb); |
176 | static void cypress_write_int_callback (struct urb *urb, struct pt_regs *regs); | 176 | static void cypress_write_int_callback (struct urb *urb); |
177 | /* baud helper functions */ | 177 | /* baud helper functions */ |
178 | static int mask_to_rate (unsigned mask); | 178 | static int mask_to_rate (unsigned mask); |
179 | static unsigned rate_to_mask (int rate); | 179 | static unsigned rate_to_mask (int rate); |
@@ -1275,7 +1275,7 @@ static void cypress_unthrottle (struct usb_serial_port *port) | |||
1275 | } | 1275 | } |
1276 | 1276 | ||
1277 | 1277 | ||
1278 | static void cypress_read_int_callback(struct urb *urb, struct pt_regs *regs) | 1278 | static void cypress_read_int_callback(struct urb *urb) |
1279 | { | 1279 | { |
1280 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; | 1280 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; |
1281 | struct cypress_private *priv = usb_get_serial_port_data(port); | 1281 | struct cypress_private *priv = usb_get_serial_port_data(port); |
@@ -1426,7 +1426,7 @@ continue_read: | |||
1426 | } /* cypress_read_int_callback */ | 1426 | } /* cypress_read_int_callback */ |
1427 | 1427 | ||
1428 | 1428 | ||
1429 | static void cypress_write_int_callback(struct urb *urb, struct pt_regs *regs) | 1429 | static void cypress_write_int_callback(struct urb *urb) |
1430 | { | 1430 | { |
1431 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; | 1431 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; |
1432 | struct cypress_private *priv = usb_get_serial_port_data(port); | 1432 | struct cypress_private *priv = usb_get_serial_port_data(port); |
diff --git a/drivers/usb/serial/digi_acceleport.c b/drivers/usb/serial/digi_acceleport.c index 9b225183fc7a..bdb58100fc1d 100644 --- a/drivers/usb/serial/digi_acceleport.c +++ b/drivers/usb/serial/digi_acceleport.c | |||
@@ -456,7 +456,7 @@ static int digi_tiocmget( struct usb_serial_port *port, struct file *file ); | |||
456 | static int digi_tiocmset( struct usb_serial_port *port, struct file *file, | 456 | static int digi_tiocmset( struct usb_serial_port *port, struct file *file, |
457 | unsigned int set, unsigned int clear ); | 457 | unsigned int set, unsigned int clear ); |
458 | static int digi_write( struct usb_serial_port *port, const unsigned char *buf, int count ); | 458 | static int digi_write( struct usb_serial_port *port, const unsigned char *buf, int count ); |
459 | static void digi_write_bulk_callback( struct urb *urb, struct pt_regs *regs ); | 459 | static void digi_write_bulk_callback( struct urb *urb ); |
460 | static int digi_write_room( struct usb_serial_port *port ); | 460 | static int digi_write_room( struct usb_serial_port *port ); |
461 | static int digi_chars_in_buffer( struct usb_serial_port *port ); | 461 | static int digi_chars_in_buffer( struct usb_serial_port *port ); |
462 | static int digi_open( struct usb_serial_port *port, struct file *filp ); | 462 | static int digi_open( struct usb_serial_port *port, struct file *filp ); |
@@ -464,7 +464,7 @@ static void digi_close( struct usb_serial_port *port, struct file *filp ); | |||
464 | static int digi_startup_device( struct usb_serial *serial ); | 464 | static int digi_startup_device( struct usb_serial *serial ); |
465 | static int digi_startup( struct usb_serial *serial ); | 465 | static int digi_startup( struct usb_serial *serial ); |
466 | static void digi_shutdown( struct usb_serial *serial ); | 466 | static void digi_shutdown( struct usb_serial *serial ); |
467 | static void digi_read_bulk_callback( struct urb *urb, struct pt_regs *regs ); | 467 | static void digi_read_bulk_callback( struct urb *urb ); |
468 | static int digi_read_inb_callback( struct urb *urb ); | 468 | static int digi_read_inb_callback( struct urb *urb ); |
469 | static int digi_read_oob_callback( struct urb *urb ); | 469 | static int digi_read_oob_callback( struct urb *urb ); |
470 | 470 | ||
@@ -1336,7 +1336,7 @@ dbg( "digi_write: returning %d", ret ); | |||
1336 | } | 1336 | } |
1337 | 1337 | ||
1338 | 1338 | ||
1339 | static void digi_write_bulk_callback( struct urb *urb, struct pt_regs *regs ) | 1339 | static void digi_write_bulk_callback( struct urb *urb ) |
1340 | { | 1340 | { |
1341 | 1341 | ||
1342 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; | 1342 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; |
@@ -1754,7 +1754,7 @@ dbg( "digi_shutdown: TOP, in_interrupt()=%ld", in_interrupt() ); | |||
1754 | } | 1754 | } |
1755 | 1755 | ||
1756 | 1756 | ||
1757 | static void digi_read_bulk_callback( struct urb *urb, struct pt_regs *regs ) | 1757 | static void digi_read_bulk_callback( struct urb *urb ) |
1758 | { | 1758 | { |
1759 | 1759 | ||
1760 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; | 1760 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; |
diff --git a/drivers/usb/serial/empeg.c b/drivers/usb/serial/empeg.c index daafe405d86d..4ce10a831953 100644 --- a/drivers/usb/serial/empeg.c +++ b/drivers/usb/serial/empeg.c | |||
@@ -93,8 +93,8 @@ static int empeg_ioctl (struct usb_serial_port *port, | |||
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 termios *old_termios); |
96 | static void empeg_write_bulk_callback (struct urb *urb, struct pt_regs *regs); | 96 | static void empeg_write_bulk_callback (struct urb *urb); |
97 | static void empeg_read_bulk_callback (struct urb *urb, struct pt_regs *regs); | 97 | static void empeg_read_bulk_callback (struct urb *urb); |
98 | 98 | ||
99 | static struct usb_device_id id_table [] = { | 99 | static struct usb_device_id id_table [] = { |
100 | { USB_DEVICE(EMPEG_VENDOR_ID, EMPEG_PRODUCT_ID) }, | 100 | { USB_DEVICE(EMPEG_VENDOR_ID, EMPEG_PRODUCT_ID) }, |
@@ -323,7 +323,7 @@ static int empeg_chars_in_buffer (struct usb_serial_port *port) | |||
323 | } | 323 | } |
324 | 324 | ||
325 | 325 | ||
326 | static void empeg_write_bulk_callback (struct urb *urb, struct pt_regs *regs) | 326 | static void empeg_write_bulk_callback (struct urb *urb) |
327 | { | 327 | { |
328 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; | 328 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; |
329 | 329 | ||
@@ -338,7 +338,7 @@ static void empeg_write_bulk_callback (struct urb *urb, struct pt_regs *regs) | |||
338 | } | 338 | } |
339 | 339 | ||
340 | 340 | ||
341 | static void empeg_read_bulk_callback (struct urb *urb, struct pt_regs *regs) | 341 | static void empeg_read_bulk_callback (struct urb *urb) |
342 | { | 342 | { |
343 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; | 343 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; |
344 | struct tty_struct *tty; | 344 | struct tty_struct *tty; |
diff --git a/drivers/usb/serial/ftdi_sio.c b/drivers/usb/serial/ftdi_sio.c index e774a27c6c98..d3dc1a15ec6c 100644 --- a/drivers/usb/serial/ftdi_sio.c +++ b/drivers/usb/serial/ftdi_sio.c | |||
@@ -589,8 +589,8 @@ static void ftdi_close (struct usb_serial_port *port, struct file *filp); | |||
589 | static int ftdi_write (struct usb_serial_port *port, const unsigned char *buf, int count); | 589 | static int ftdi_write (struct usb_serial_port *port, const unsigned char *buf, int count); |
590 | static int ftdi_write_room (struct usb_serial_port *port); | 590 | static int ftdi_write_room (struct usb_serial_port *port); |
591 | static int ftdi_chars_in_buffer (struct usb_serial_port *port); | 591 | static int ftdi_chars_in_buffer (struct usb_serial_port *port); |
592 | static void ftdi_write_bulk_callback (struct urb *urb, struct pt_regs *regs); | 592 | static void ftdi_write_bulk_callback (struct urb *urb); |
593 | static void ftdi_read_bulk_callback (struct urb *urb, struct pt_regs *regs); | 593 | static void ftdi_read_bulk_callback (struct urb *urb); |
594 | static void ftdi_process_read (void *param); | 594 | static void ftdi_process_read (void *param); |
595 | static void ftdi_set_termios (struct usb_serial_port *port, struct termios * old); | 595 | static void ftdi_set_termios (struct usb_serial_port *port, struct termios * old); |
596 | static int ftdi_tiocmget (struct usb_serial_port *port, struct file *file); | 596 | static int ftdi_tiocmget (struct usb_serial_port *port, struct file *file); |
@@ -1508,7 +1508,7 @@ static int ftdi_write (struct usb_serial_port *port, | |||
1508 | 1508 | ||
1509 | /* This function may get called when the device is closed */ | 1509 | /* This function may get called when the device is closed */ |
1510 | 1510 | ||
1511 | static void ftdi_write_bulk_callback (struct urb *urb, struct pt_regs *regs) | 1511 | static void ftdi_write_bulk_callback (struct urb *urb) |
1512 | { | 1512 | { |
1513 | unsigned long flags; | 1513 | unsigned long flags; |
1514 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; | 1514 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; |
@@ -1591,7 +1591,7 @@ static int ftdi_chars_in_buffer (struct usb_serial_port *port) | |||
1591 | 1591 | ||
1592 | 1592 | ||
1593 | 1593 | ||
1594 | static void ftdi_read_bulk_callback (struct urb *urb, struct pt_regs *regs) | 1594 | static void ftdi_read_bulk_callback (struct urb *urb) |
1595 | { /* ftdi_read_bulk_callback */ | 1595 | { /* ftdi_read_bulk_callback */ |
1596 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; | 1596 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; |
1597 | struct tty_struct *tty; | 1597 | struct tty_struct *tty; |
diff --git a/drivers/usb/serial/garmin_gps.c b/drivers/usb/serial/garmin_gps.c index 4b1196a8b09e..4543152a9966 100644 --- a/drivers/usb/serial/garmin_gps.c +++ b/drivers/usb/serial/garmin_gps.c | |||
@@ -1031,7 +1031,7 @@ static void garmin_close (struct usb_serial_port *port, struct file * filp) | |||
1031 | } | 1031 | } |
1032 | 1032 | ||
1033 | 1033 | ||
1034 | static void garmin_write_bulk_callback (struct urb *urb, struct pt_regs *regs) | 1034 | static void garmin_write_bulk_callback (struct urb *urb) |
1035 | { | 1035 | { |
1036 | unsigned long flags; | 1036 | unsigned long flags; |
1037 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; | 1037 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; |
@@ -1274,7 +1274,7 @@ static void garmin_read_process(struct garmin_data * garmin_data_p, | |||
1274 | } | 1274 | } |
1275 | 1275 | ||
1276 | 1276 | ||
1277 | static void garmin_read_bulk_callback (struct urb *urb, struct pt_regs *regs) | 1277 | static void garmin_read_bulk_callback (struct urb *urb) |
1278 | { | 1278 | { |
1279 | unsigned long flags; | 1279 | unsigned long flags; |
1280 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; | 1280 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; |
@@ -1330,7 +1330,7 @@ static void garmin_read_bulk_callback (struct urb *urb, struct pt_regs *regs) | |||
1330 | } | 1330 | } |
1331 | 1331 | ||
1332 | 1332 | ||
1333 | static void garmin_read_int_callback (struct urb *urb, struct pt_regs *regs) | 1333 | static void garmin_read_int_callback (struct urb *urb) |
1334 | { | 1334 | { |
1335 | unsigned long flags; | 1335 | unsigned long flags; |
1336 | int status; | 1336 | int status; |
diff --git a/drivers/usb/serial/generic.c b/drivers/usb/serial/generic.c index 21cbaa0fb96b..36042937e77f 100644 --- a/drivers/usb/serial/generic.c +++ b/drivers/usb/serial/generic.c | |||
@@ -248,7 +248,7 @@ int usb_serial_generic_chars_in_buffer (struct usb_serial_port *port) | |||
248 | return (chars); | 248 | return (chars); |
249 | } | 249 | } |
250 | 250 | ||
251 | void usb_serial_generic_read_bulk_callback (struct urb *urb, struct pt_regs *regs) | 251 | void usb_serial_generic_read_bulk_callback (struct urb *urb) |
252 | { | 252 | { |
253 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; | 253 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; |
254 | struct usb_serial *serial = port->serial; | 254 | struct usb_serial *serial = port->serial; |
@@ -287,7 +287,7 @@ void usb_serial_generic_read_bulk_callback (struct urb *urb, struct pt_regs *reg | |||
287 | } | 287 | } |
288 | EXPORT_SYMBOL_GPL(usb_serial_generic_read_bulk_callback); | 288 | EXPORT_SYMBOL_GPL(usb_serial_generic_read_bulk_callback); |
289 | 289 | ||
290 | void usb_serial_generic_write_bulk_callback (struct urb *urb, struct pt_regs *regs) | 290 | void usb_serial_generic_write_bulk_callback (struct urb *urb) |
291 | { | 291 | { |
292 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; | 292 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; |
293 | 293 | ||
diff --git a/drivers/usb/serial/io_edgeport.c b/drivers/usb/serial/io_edgeport.c index c49976c3ad52..91bd3014ef1e 100644 --- a/drivers/usb/serial/io_edgeport.c +++ b/drivers/usb/serial/io_edgeport.c | |||
@@ -216,10 +216,10 @@ static int CmdUrbs = 0; /* Number of outstanding Command Write Urbs */ | |||
216 | /* local function prototypes */ | 216 | /* local function prototypes */ |
217 | 217 | ||
218 | /* function prototypes for all URB callbacks */ | 218 | /* function prototypes for all URB callbacks */ |
219 | static void edge_interrupt_callback (struct urb *urb, struct pt_regs *regs); | 219 | static void edge_interrupt_callback (struct urb *urb); |
220 | static void edge_bulk_in_callback (struct urb *urb, struct pt_regs *regs); | 220 | static void edge_bulk_in_callback (struct urb *urb); |
221 | static void edge_bulk_out_data_callback (struct urb *urb, struct pt_regs *regs); | 221 | static void edge_bulk_out_data_callback (struct urb *urb); |
222 | static void edge_bulk_out_cmd_callback (struct urb *urb, struct pt_regs *regs); | 222 | static void edge_bulk_out_cmd_callback (struct urb *urb); |
223 | 223 | ||
224 | /* function prototypes for the usbserial callbacks */ | 224 | /* function prototypes for the usbserial callbacks */ |
225 | static int edge_open (struct usb_serial_port *port, struct file *filp); | 225 | static int edge_open (struct usb_serial_port *port, struct file *filp); |
@@ -534,7 +534,7 @@ static void get_product_info(struct edgeport_serial *edge_serial) | |||
534 | * this is the callback function for when we have received data on the | 534 | * this is the callback function for when we have received data on the |
535 | * interrupt endpoint. | 535 | * interrupt endpoint. |
536 | *****************************************************************************/ | 536 | *****************************************************************************/ |
537 | static void edge_interrupt_callback (struct urb *urb, struct pt_regs *regs) | 537 | static void edge_interrupt_callback (struct urb *urb) |
538 | { | 538 | { |
539 | struct edgeport_serial *edge_serial = (struct edgeport_serial *)urb->context; | 539 | struct edgeport_serial *edge_serial = (struct edgeport_serial *)urb->context; |
540 | struct edgeport_port *edge_port; | 540 | struct edgeport_port *edge_port; |
@@ -631,7 +631,7 @@ exit: | |||
631 | * this is the callback function for when we have received data on the | 631 | * this is the callback function for when we have received data on the |
632 | * bulk in endpoint. | 632 | * bulk in endpoint. |
633 | *****************************************************************************/ | 633 | *****************************************************************************/ |
634 | static void edge_bulk_in_callback (struct urb *urb, struct pt_regs *regs) | 634 | static void edge_bulk_in_callback (struct urb *urb) |
635 | { | 635 | { |
636 | struct edgeport_serial *edge_serial = (struct edgeport_serial *)urb->context; | 636 | struct edgeport_serial *edge_serial = (struct edgeport_serial *)urb->context; |
637 | unsigned char *data = urb->transfer_buffer; | 637 | unsigned char *data = urb->transfer_buffer; |
@@ -687,7 +687,7 @@ static void edge_bulk_in_callback (struct urb *urb, struct pt_regs *regs) | |||
687 | * this is the callback function for when we have finished sending serial data | 687 | * this is the callback function for when we have finished sending serial data |
688 | * on the bulk out endpoint. | 688 | * on the bulk out endpoint. |
689 | *****************************************************************************/ | 689 | *****************************************************************************/ |
690 | static void edge_bulk_out_data_callback (struct urb *urb, struct pt_regs *regs) | 690 | static void edge_bulk_out_data_callback (struct urb *urb) |
691 | { | 691 | { |
692 | struct edgeport_port *edge_port = (struct edgeport_port *)urb->context; | 692 | struct edgeport_port *edge_port = (struct edgeport_port *)urb->context; |
693 | struct tty_struct *tty; | 693 | struct tty_struct *tty; |
@@ -718,7 +718,7 @@ static void edge_bulk_out_data_callback (struct urb *urb, struct pt_regs *regs) | |||
718 | * this is the callback function for when we have finished sending a command | 718 | * this is the callback function for when we have finished sending a command |
719 | * on the bulk out endpoint. | 719 | * on the bulk out endpoint. |
720 | *****************************************************************************/ | 720 | *****************************************************************************/ |
721 | static void edge_bulk_out_cmd_callback (struct urb *urb, struct pt_regs *regs) | 721 | static void edge_bulk_out_cmd_callback (struct urb *urb) |
722 | { | 722 | { |
723 | struct edgeport_port *edge_port = (struct edgeport_port *)urb->context; | 723 | struct edgeport_port *edge_port = (struct edgeport_port *)urb->context; |
724 | struct tty_struct *tty; | 724 | struct tty_struct *tty; |
diff --git a/drivers/usb/serial/io_ti.c b/drivers/usb/serial/io_ti.c index 17c5b1d2311a..ee0c921e1520 100644 --- a/drivers/usb/serial/io_ti.c +++ b/drivers/usb/serial/io_ti.c | |||
@@ -1697,7 +1697,7 @@ static void handle_new_lsr (struct edgeport_port *edge_port, int lsr_data, __u8 | |||
1697 | } | 1697 | } |
1698 | 1698 | ||
1699 | 1699 | ||
1700 | static void edge_interrupt_callback (struct urb *urb, struct pt_regs *regs) | 1700 | static void edge_interrupt_callback (struct urb *urb) |
1701 | { | 1701 | { |
1702 | struct edgeport_serial *edge_serial = (struct edgeport_serial *)urb->context; | 1702 | struct edgeport_serial *edge_serial = (struct edgeport_serial *)urb->context; |
1703 | struct usb_serial_port *port; | 1703 | struct usb_serial_port *port; |
@@ -1787,7 +1787,7 @@ exit: | |||
1787 | __FUNCTION__, status); | 1787 | __FUNCTION__, status); |
1788 | } | 1788 | } |
1789 | 1789 | ||
1790 | static void edge_bulk_in_callback (struct urb *urb, struct pt_regs *regs) | 1790 | static void edge_bulk_in_callback (struct urb *urb) |
1791 | { | 1791 | { |
1792 | struct edgeport_port *edge_port = (struct edgeport_port *)urb->context; | 1792 | struct edgeport_port *edge_port = (struct edgeport_port *)urb->context; |
1793 | unsigned char *data = urb->transfer_buffer; | 1793 | unsigned char *data = urb->transfer_buffer; |
@@ -1879,7 +1879,7 @@ static void edge_tty_recv(struct device *dev, struct tty_struct *tty, unsigned c | |||
1879 | tty_flip_buffer_push(tty); | 1879 | tty_flip_buffer_push(tty); |
1880 | } | 1880 | } |
1881 | 1881 | ||
1882 | static void edge_bulk_out_callback (struct urb *urb, struct pt_regs *regs) | 1882 | static void edge_bulk_out_callback (struct urb *urb) |
1883 | { | 1883 | { |
1884 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; | 1884 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; |
1885 | struct edgeport_port *edge_port = usb_get_serial_port_data(port); | 1885 | struct edgeport_port *edge_port = usb_get_serial_port_data(port); |
diff --git a/drivers/usb/serial/ipaq.c b/drivers/usb/serial/ipaq.c index cbc725a6c58e..6238aff1e772 100644 --- a/drivers/usb/serial/ipaq.c +++ b/drivers/usb/serial/ipaq.c | |||
@@ -83,8 +83,8 @@ static int ipaq_write(struct usb_serial_port *port, const unsigned char *buf, | |||
83 | static int ipaq_write_bulk(struct usb_serial_port *port, const unsigned char *buf, | 83 | static int ipaq_write_bulk(struct usb_serial_port *port, const unsigned char *buf, |
84 | int count); | 84 | int count); |
85 | static void ipaq_write_gather(struct usb_serial_port *port); | 85 | static void ipaq_write_gather(struct usb_serial_port *port); |
86 | static void ipaq_read_bulk_callback (struct urb *urb, struct pt_regs *regs); | 86 | static void ipaq_read_bulk_callback (struct urb *urb); |
87 | static void ipaq_write_bulk_callback(struct urb *urb, struct pt_regs *regs); | 87 | static void ipaq_write_bulk_callback(struct urb *urb); |
88 | static int ipaq_write_room(struct usb_serial_port *port); | 88 | static int ipaq_write_room(struct usb_serial_port *port); |
89 | static int ipaq_chars_in_buffer(struct usb_serial_port *port); | 89 | static int ipaq_chars_in_buffer(struct usb_serial_port *port); |
90 | static void ipaq_destroy_lists(struct usb_serial_port *port); | 90 | static void ipaq_destroy_lists(struct usb_serial_port *port); |
@@ -721,7 +721,7 @@ static void ipaq_close(struct usb_serial_port *port, struct file *filp) | |||
721 | /* info ("Bytes In = %d Bytes Out = %d", bytes_in, bytes_out); */ | 721 | /* info ("Bytes In = %d Bytes Out = %d", bytes_in, bytes_out); */ |
722 | } | 722 | } |
723 | 723 | ||
724 | static void ipaq_read_bulk_callback(struct urb *urb, struct pt_regs *regs) | 724 | static void ipaq_read_bulk_callback(struct urb *urb) |
725 | { | 725 | { |
726 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; | 726 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; |
727 | struct tty_struct *tty; | 727 | struct tty_struct *tty; |
@@ -859,7 +859,7 @@ static void ipaq_write_gather(struct usb_serial_port *port) | |||
859 | return; | 859 | return; |
860 | } | 860 | } |
861 | 861 | ||
862 | static void ipaq_write_bulk_callback(struct urb *urb, struct pt_regs *regs) | 862 | static void ipaq_write_bulk_callback(struct urb *urb) |
863 | { | 863 | { |
864 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; | 864 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; |
865 | struct ipaq_private *priv = usb_get_serial_port_data(port); | 865 | struct ipaq_private *priv = usb_get_serial_port_data(port); |
diff --git a/drivers/usb/serial/ipw.c b/drivers/usb/serial/ipw.c index 812bc213a963..2a4bb66691ad 100644 --- a/drivers/usb/serial/ipw.c +++ b/drivers/usb/serial/ipw.c | |||
@@ -161,7 +161,7 @@ static struct usb_driver usb_ipw_driver = { | |||
161 | 161 | ||
162 | static int debug; | 162 | static int debug; |
163 | 163 | ||
164 | static void ipw_read_bulk_callback(struct urb *urb, struct pt_regs *regs) | 164 | static void ipw_read_bulk_callback(struct urb *urb) |
165 | { | 165 | { |
166 | struct usb_serial_port *port = urb->context; | 166 | struct usb_serial_port *port = urb->context; |
167 | unsigned char *data = urb->transfer_buffer; | 167 | unsigned char *data = urb->transfer_buffer; |
@@ -367,7 +367,7 @@ static void ipw_close(struct usb_serial_port *port, struct file * filp) | |||
367 | usb_kill_urb(port->write_urb); | 367 | usb_kill_urb(port->write_urb); |
368 | } | 368 | } |
369 | 369 | ||
370 | static void ipw_write_bulk_callback(struct urb *urb, struct pt_regs *regs) | 370 | static void ipw_write_bulk_callback(struct urb *urb) |
371 | { | 371 | { |
372 | struct usb_serial_port *port = urb->context; | 372 | struct usb_serial_port *port = urb->context; |
373 | 373 | ||
diff --git a/drivers/usb/serial/ir-usb.c b/drivers/usb/serial/ir-usb.c index 1b348df388ed..331bf81556fc 100644 --- a/drivers/usb/serial/ir-usb.c +++ b/drivers/usb/serial/ir-usb.c | |||
@@ -105,8 +105,8 @@ static int ir_startup (struct usb_serial *serial); | |||
105 | static int ir_open (struct usb_serial_port *port, struct file *filep); | 105 | static int ir_open (struct usb_serial_port *port, struct file *filep); |
106 | static void ir_close (struct usb_serial_port *port, struct file *filep); | 106 | 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, struct pt_regs *regs); | 108 | static void ir_write_bulk_callback (struct urb *urb); |
109 | static void ir_read_bulk_callback (struct urb *urb, struct pt_regs *regs); | 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 termios *old_termios); |
111 | 111 | ||
112 | static u8 ir_baud = 0; | 112 | static u8 ir_baud = 0; |
@@ -388,7 +388,7 @@ static int ir_write (struct usb_serial_port *port, const unsigned char *buf, int | |||
388 | return result; | 388 | return result; |
389 | } | 389 | } |
390 | 390 | ||
391 | static void ir_write_bulk_callback (struct urb *urb, struct pt_regs *regs) | 391 | static void ir_write_bulk_callback (struct urb *urb) |
392 | { | 392 | { |
393 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; | 393 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; |
394 | 394 | ||
@@ -410,7 +410,7 @@ static void ir_write_bulk_callback (struct urb *urb, struct pt_regs *regs) | |||
410 | usb_serial_port_softint(port); | 410 | usb_serial_port_softint(port); |
411 | } | 411 | } |
412 | 412 | ||
413 | static void ir_read_bulk_callback (struct urb *urb, struct pt_regs *regs) | 413 | static void ir_read_bulk_callback (struct urb *urb) |
414 | { | 414 | { |
415 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; | 415 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; |
416 | struct tty_struct *tty; | 416 | struct tty_struct *tty; |
diff --git a/drivers/usb/serial/keyspan.c b/drivers/usb/serial/keyspan.c index 015ad6cc1bbb..53be824eb1bf 100644 --- a/drivers/usb/serial/keyspan.c +++ b/drivers/usb/serial/keyspan.c | |||
@@ -412,7 +412,7 @@ static int keyspan_write(struct usb_serial_port *port, | |||
412 | return count - left; | 412 | return count - left; |
413 | } | 413 | } |
414 | 414 | ||
415 | static void usa26_indat_callback(struct urb *urb, struct pt_regs *regs) | 415 | static void usa26_indat_callback(struct urb *urb) |
416 | { | 416 | { |
417 | int i, err; | 417 | int i, err; |
418 | int endpoint; | 418 | int endpoint; |
@@ -470,7 +470,7 @@ static void usa26_indat_callback(struct urb *urb, struct pt_regs *regs) | |||
470 | } | 470 | } |
471 | 471 | ||
472 | /* Outdat handling is common for all devices */ | 472 | /* Outdat handling is common for all devices */ |
473 | static void usa2x_outdat_callback(struct urb *urb, struct pt_regs *regs) | 473 | static void usa2x_outdat_callback(struct urb *urb) |
474 | { | 474 | { |
475 | struct usb_serial_port *port; | 475 | struct usb_serial_port *port; |
476 | struct keyspan_port_private *p_priv; | 476 | struct keyspan_port_private *p_priv; |
@@ -483,13 +483,13 @@ static void usa2x_outdat_callback(struct urb *urb, struct pt_regs *regs) | |||
483 | usb_serial_port_softint(port); | 483 | usb_serial_port_softint(port); |
484 | } | 484 | } |
485 | 485 | ||
486 | static void usa26_inack_callback(struct urb *urb, struct pt_regs *regs) | 486 | static void usa26_inack_callback(struct urb *urb) |
487 | { | 487 | { |
488 | dbg ("%s", __FUNCTION__); | 488 | dbg ("%s", __FUNCTION__); |
489 | 489 | ||
490 | } | 490 | } |
491 | 491 | ||
492 | static void usa26_outcont_callback(struct urb *urb, struct pt_regs *regs) | 492 | static void usa26_outcont_callback(struct urb *urb) |
493 | { | 493 | { |
494 | struct usb_serial_port *port; | 494 | struct usb_serial_port *port; |
495 | struct keyspan_port_private *p_priv; | 495 | struct keyspan_port_private *p_priv; |
@@ -503,7 +503,7 @@ static void usa26_outcont_callback(struct urb *urb, struct pt_regs *regs) | |||
503 | } | 503 | } |
504 | } | 504 | } |
505 | 505 | ||
506 | static void usa26_instat_callback(struct urb *urb, struct pt_regs *regs) | 506 | static void usa26_instat_callback(struct urb *urb) |
507 | { | 507 | { |
508 | unsigned char *data = urb->transfer_buffer; | 508 | unsigned char *data = urb->transfer_buffer; |
509 | struct keyspan_usa26_portStatusMessage *msg; | 509 | struct keyspan_usa26_portStatusMessage *msg; |
@@ -565,14 +565,14 @@ static void usa26_instat_callback(struct urb *urb, struct pt_regs *regs) | |||
565 | exit: ; | 565 | exit: ; |
566 | } | 566 | } |
567 | 567 | ||
568 | static void usa26_glocont_callback(struct urb *urb, struct pt_regs *regs) | 568 | static void usa26_glocont_callback(struct urb *urb) |
569 | { | 569 | { |
570 | dbg ("%s", __FUNCTION__); | 570 | dbg ("%s", __FUNCTION__); |
571 | 571 | ||
572 | } | 572 | } |
573 | 573 | ||
574 | 574 | ||
575 | static void usa28_indat_callback(struct urb *urb, struct pt_regs *regs) | 575 | static void usa28_indat_callback(struct urb *urb) |
576 | { | 576 | { |
577 | int i, err; | 577 | int i, err; |
578 | struct usb_serial_port *port; | 578 | struct usb_serial_port *port; |
@@ -620,12 +620,12 @@ static void usa28_indat_callback(struct urb *urb, struct pt_regs *regs) | |||
620 | } while (urb->status != -EINPROGRESS); | 620 | } while (urb->status != -EINPROGRESS); |
621 | } | 621 | } |
622 | 622 | ||
623 | static void usa28_inack_callback(struct urb *urb, struct pt_regs *regs) | 623 | static void usa28_inack_callback(struct urb *urb) |
624 | { | 624 | { |
625 | dbg ("%s", __FUNCTION__); | 625 | dbg ("%s", __FUNCTION__); |
626 | } | 626 | } |
627 | 627 | ||
628 | static void usa28_outcont_callback(struct urb *urb, struct pt_regs *regs) | 628 | static void usa28_outcont_callback(struct urb *urb) |
629 | { | 629 | { |
630 | struct usb_serial_port *port; | 630 | struct usb_serial_port *port; |
631 | struct keyspan_port_private *p_priv; | 631 | struct keyspan_port_private *p_priv; |
@@ -639,7 +639,7 @@ static void usa28_outcont_callback(struct urb *urb, struct pt_regs *regs) | |||
639 | } | 639 | } |
640 | } | 640 | } |
641 | 641 | ||
642 | static void usa28_instat_callback(struct urb *urb, struct pt_regs *regs) | 642 | static void usa28_instat_callback(struct urb *urb) |
643 | { | 643 | { |
644 | int err; | 644 | int err; |
645 | unsigned char *data = urb->transfer_buffer; | 645 | unsigned char *data = urb->transfer_buffer; |
@@ -700,13 +700,13 @@ static void usa28_instat_callback(struct urb *urb, struct pt_regs *regs) | |||
700 | exit: ; | 700 | exit: ; |
701 | } | 701 | } |
702 | 702 | ||
703 | static void usa28_glocont_callback(struct urb *urb, struct pt_regs *regs) | 703 | static void usa28_glocont_callback(struct urb *urb) |
704 | { | 704 | { |
705 | dbg ("%s", __FUNCTION__); | 705 | dbg ("%s", __FUNCTION__); |
706 | } | 706 | } |
707 | 707 | ||
708 | 708 | ||
709 | static void usa49_glocont_callback(struct urb *urb, struct pt_regs *regs) | 709 | static void usa49_glocont_callback(struct urb *urb) |
710 | { | 710 | { |
711 | struct usb_serial *serial; | 711 | struct usb_serial *serial; |
712 | struct usb_serial_port *port; | 712 | struct usb_serial_port *port; |
@@ -730,7 +730,7 @@ static void usa49_glocont_callback(struct urb *urb, struct pt_regs *regs) | |||
730 | 730 | ||
731 | /* This is actually called glostat in the Keyspan | 731 | /* This is actually called glostat in the Keyspan |
732 | doco */ | 732 | doco */ |
733 | static void usa49_instat_callback(struct urb *urb, struct pt_regs *regs) | 733 | static void usa49_instat_callback(struct urb *urb) |
734 | { | 734 | { |
735 | int err; | 735 | int err; |
736 | unsigned char *data = urb->transfer_buffer; | 736 | unsigned char *data = urb->transfer_buffer; |
@@ -793,12 +793,12 @@ static void usa49_instat_callback(struct urb *urb, struct pt_regs *regs) | |||
793 | exit: ; | 793 | exit: ; |
794 | } | 794 | } |
795 | 795 | ||
796 | static void usa49_inack_callback(struct urb *urb, struct pt_regs *regs) | 796 | static void usa49_inack_callback(struct urb *urb) |
797 | { | 797 | { |
798 | dbg ("%s", __FUNCTION__); | 798 | dbg ("%s", __FUNCTION__); |
799 | } | 799 | } |
800 | 800 | ||
801 | static void usa49_indat_callback(struct urb *urb, struct pt_regs *regs) | 801 | static void usa49_indat_callback(struct urb *urb) |
802 | { | 802 | { |
803 | int i, err; | 803 | int i, err; |
804 | int endpoint; | 804 | int endpoint; |
@@ -851,12 +851,12 @@ static void usa49_indat_callback(struct urb *urb, struct pt_regs *regs) | |||
851 | } | 851 | } |
852 | 852 | ||
853 | /* not used, usa-49 doesn't have per-port control endpoints */ | 853 | /* not used, usa-49 doesn't have per-port control endpoints */ |
854 | static void usa49_outcont_callback(struct urb *urb, struct pt_regs *regs) | 854 | static void usa49_outcont_callback(struct urb *urb) |
855 | { | 855 | { |
856 | dbg ("%s", __FUNCTION__); | 856 | dbg ("%s", __FUNCTION__); |
857 | } | 857 | } |
858 | 858 | ||
859 | static void usa90_indat_callback(struct urb *urb, struct pt_regs *regs) | 859 | static void usa90_indat_callback(struct urb *urb) |
860 | { | 860 | { |
861 | int i, err; | 861 | int i, err; |
862 | int endpoint; | 862 | int endpoint; |
@@ -930,7 +930,7 @@ static void usa90_indat_callback(struct urb *urb, struct pt_regs *regs) | |||
930 | } | 930 | } |
931 | 931 | ||
932 | 932 | ||
933 | static void usa90_instat_callback(struct urb *urb, struct pt_regs *regs) | 933 | static void usa90_instat_callback(struct urb *urb) |
934 | { | 934 | { |
935 | unsigned char *data = urb->transfer_buffer; | 935 | unsigned char *data = urb->transfer_buffer; |
936 | struct keyspan_usa90_portStatusMessage *msg; | 936 | struct keyspan_usa90_portStatusMessage *msg; |
@@ -981,7 +981,7 @@ exit: | |||
981 | ; | 981 | ; |
982 | } | 982 | } |
983 | 983 | ||
984 | static void usa90_outcont_callback(struct urb *urb, struct pt_regs *regs) | 984 | static void usa90_outcont_callback(struct urb *urb) |
985 | { | 985 | { |
986 | struct usb_serial_port *port; | 986 | struct usb_serial_port *port; |
987 | struct keyspan_port_private *p_priv; | 987 | struct keyspan_port_private *p_priv; |
@@ -1277,7 +1277,7 @@ static int keyspan_fake_startup (struct usb_serial *serial) | |||
1277 | /* Helper functions used by keyspan_setup_urbs */ | 1277 | /* Helper functions used by keyspan_setup_urbs */ |
1278 | static struct urb *keyspan_setup_urb (struct usb_serial *serial, int endpoint, | 1278 | static struct urb *keyspan_setup_urb (struct usb_serial *serial, int endpoint, |
1279 | int dir, void *ctx, char *buf, int len, | 1279 | int dir, void *ctx, char *buf, int len, |
1280 | void (*callback)(struct urb *, struct pt_regs *regs)) | 1280 | void (*callback)(struct urb *)) |
1281 | { | 1281 | { |
1282 | struct urb *urb; | 1282 | struct urb *urb; |
1283 | 1283 | ||
@@ -1300,12 +1300,12 @@ static struct urb *keyspan_setup_urb (struct usb_serial *serial, int endpoint, | |||
1300 | } | 1300 | } |
1301 | 1301 | ||
1302 | static struct callbacks { | 1302 | static struct callbacks { |
1303 | void (*instat_callback)(struct urb *, struct pt_regs *regs); | 1303 | void (*instat_callback)(struct urb *); |
1304 | void (*glocont_callback)(struct urb *, struct pt_regs *regs); | 1304 | void (*glocont_callback)(struct urb *); |
1305 | void (*indat_callback)(struct urb *, struct pt_regs *regs); | 1305 | void (*indat_callback)(struct urb *); |
1306 | void (*outdat_callback)(struct urb *, struct pt_regs *regs); | 1306 | void (*outdat_callback)(struct urb *); |
1307 | void (*inack_callback)(struct urb *, struct pt_regs *regs); | 1307 | void (*inack_callback)(struct urb *); |
1308 | void (*outcont_callback)(struct urb *, struct pt_regs *regs); | 1308 | void (*outcont_callback)(struct urb *); |
1309 | } keyspan_callbacks[] = { | 1309 | } keyspan_callbacks[] = { |
1310 | { | 1310 | { |
1311 | /* msg_usa26 callbacks */ | 1311 | /* msg_usa26 callbacks */ |
diff --git a/drivers/usb/serial/keyspan_pda.c b/drivers/usb/serial/keyspan_pda.c index 59e777f1e8fd..909005107ea2 100644 --- a/drivers/usb/serial/keyspan_pda.c +++ b/drivers/usb/serial/keyspan_pda.c | |||
@@ -210,7 +210,7 @@ static void keyspan_pda_request_unthrottle( struct usb_serial *serial ) | |||
210 | } | 210 | } |
211 | 211 | ||
212 | 212 | ||
213 | static void keyspan_pda_rx_interrupt (struct urb *urb, struct pt_regs *regs) | 213 | static void keyspan_pda_rx_interrupt (struct urb *urb) |
214 | { | 214 | { |
215 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; | 215 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; |
216 | struct tty_struct *tty = port->tty; | 216 | struct tty_struct *tty = port->tty; |
@@ -601,7 +601,7 @@ exit: | |||
601 | } | 601 | } |
602 | 602 | ||
603 | 603 | ||
604 | static void keyspan_pda_write_bulk_callback (struct urb *urb, struct pt_regs *regs) | 604 | static void keyspan_pda_write_bulk_callback (struct urb *urb) |
605 | { | 605 | { |
606 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; | 606 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; |
607 | struct keyspan_pda_private *priv; | 607 | struct keyspan_pda_private *priv; |
diff --git a/drivers/usb/serial/kl5kusb105.c b/drivers/usb/serial/kl5kusb105.c index 2a2f3e2da055..17e205699c2b 100644 --- a/drivers/usb/serial/kl5kusb105.c +++ b/drivers/usb/serial/kl5kusb105.c | |||
@@ -80,11 +80,11 @@ static void klsi_105_close (struct usb_serial_port *port, | |||
80 | static int klsi_105_write (struct usb_serial_port *port, | 80 | static int klsi_105_write (struct usb_serial_port *port, |
81 | const unsigned char *buf, | 81 | const unsigned char *buf, |
82 | int count); | 82 | int count); |
83 | static void klsi_105_write_bulk_callback (struct urb *urb, struct pt_regs *regs); | 83 | static void klsi_105_write_bulk_callback (struct urb *urb); |
84 | static int klsi_105_chars_in_buffer (struct usb_serial_port *port); | 84 | static int klsi_105_chars_in_buffer (struct usb_serial_port *port); |
85 | static int klsi_105_write_room (struct usb_serial_port *port); | 85 | static int klsi_105_write_room (struct usb_serial_port *port); |
86 | 86 | ||
87 | static void klsi_105_read_bulk_callback (struct urb *urb, struct pt_regs *regs); | 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 termios * old); |
90 | static int klsi_105_ioctl (struct usb_serial_port *port, | 90 | static int klsi_105_ioctl (struct usb_serial_port *port, |
@@ -556,7 +556,7 @@ exit: | |||
556 | return bytes_sent; /* that's how much we wrote */ | 556 | return bytes_sent; /* that's how much we wrote */ |
557 | } /* klsi_105_write */ | 557 | } /* klsi_105_write */ |
558 | 558 | ||
559 | static void klsi_105_write_bulk_callback ( struct urb *urb, struct pt_regs *regs) | 559 | static void klsi_105_write_bulk_callback ( struct urb *urb) |
560 | { | 560 | { |
561 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; | 561 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; |
562 | 562 | ||
@@ -616,7 +616,7 @@ static int klsi_105_write_room (struct usb_serial_port *port) | |||
616 | 616 | ||
617 | 617 | ||
618 | 618 | ||
619 | static void klsi_105_read_bulk_callback (struct urb *urb, struct pt_regs *regs) | 619 | static void klsi_105_read_bulk_callback (struct urb *urb) |
620 | { | 620 | { |
621 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; | 621 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; |
622 | struct klsi_105_private *priv = usb_get_serial_port_data(port); | 622 | struct klsi_105_private *priv = usb_get_serial_port_data(port); |
diff --git a/drivers/usb/serial/kobil_sct.c b/drivers/usb/serial/kobil_sct.c index d50dce034958..ff03331e0bcf 100644 --- a/drivers/usb/serial/kobil_sct.c +++ b/drivers/usb/serial/kobil_sct.c | |||
@@ -80,8 +80,8 @@ static int kobil_ioctl(struct usb_serial_port *port, struct file *file, | |||
80 | static int kobil_tiocmget(struct usb_serial_port *port, struct file *file); | 80 | static int kobil_tiocmget(struct usb_serial_port *port, struct file *file); |
81 | static int kobil_tiocmset(struct usb_serial_port *port, struct file *file, | 81 | static int kobil_tiocmset(struct usb_serial_port *port, struct file *file, |
82 | unsigned int set, unsigned int clear); | 82 | unsigned int set, unsigned int clear); |
83 | static void kobil_read_int_callback( struct urb *urb, struct pt_regs *regs ); | 83 | static void kobil_read_int_callback( struct urb *urb ); |
84 | static void kobil_write_callback( struct urb *purb, struct pt_regs *regs ); | 84 | static void kobil_write_callback( struct urb *purb ); |
85 | 85 | ||
86 | 86 | ||
87 | static struct usb_device_id id_table [] = { | 87 | static struct usb_device_id id_table [] = { |
@@ -360,7 +360,7 @@ static void kobil_close (struct usb_serial_port *port, struct file *filp) | |||
360 | } | 360 | } |
361 | 361 | ||
362 | 362 | ||
363 | static void kobil_read_int_callback( struct urb *purb, struct pt_regs *regs) | 363 | static void kobil_read_int_callback( struct urb *purb) |
364 | { | 364 | { |
365 | int result; | 365 | int result; |
366 | struct usb_serial_port *port = (struct usb_serial_port *) purb->context; | 366 | struct usb_serial_port *port = (struct usb_serial_port *) purb->context; |
@@ -405,7 +405,7 @@ static void kobil_read_int_callback( struct urb *purb, struct pt_regs *regs) | |||
405 | } | 405 | } |
406 | 406 | ||
407 | 407 | ||
408 | static void kobil_write_callback( struct urb *purb, struct pt_regs *regs ) | 408 | static void kobil_write_callback( struct urb *purb ) |
409 | { | 409 | { |
410 | } | 410 | } |
411 | 411 | ||
diff --git a/drivers/usb/serial/mct_u232.c b/drivers/usb/serial/mct_u232.c index f4d4305c2c02..b7582cc496dc 100644 --- a/drivers/usb/serial/mct_u232.c +++ b/drivers/usb/serial/mct_u232.c | |||
@@ -96,7 +96,7 @@ static int mct_u232_open (struct usb_serial_port *port, | |||
96 | struct file *filp); | 96 | struct file *filp); |
97 | static void mct_u232_close (struct usb_serial_port *port, | 97 | 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, struct pt_regs *regs); | 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 termios * old); |
102 | static int mct_u232_ioctl (struct usb_serial_port *port, | 102 | static int mct_u232_ioctl (struct usb_serial_port *port, |
@@ -466,7 +466,7 @@ static void mct_u232_close (struct usb_serial_port *port, struct file *filp) | |||
466 | } /* mct_u232_close */ | 466 | } /* mct_u232_close */ |
467 | 467 | ||
468 | 468 | ||
469 | static void mct_u232_read_int_callback (struct urb *urb, struct pt_regs *regs) | 469 | static void mct_u232_read_int_callback (struct urb *urb) |
470 | { | 470 | { |
471 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; | 471 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; |
472 | struct mct_u232_private *priv = usb_get_serial_port_data(port); | 472 | struct mct_u232_private *priv = usb_get_serial_port_data(port); |
diff --git a/drivers/usb/serial/mos7840.c b/drivers/usb/serial/mos7840.c index 95bf57166c59..2306d493e55b 100644 --- a/drivers/usb/serial/mos7840.c +++ b/drivers/usb/serial/mos7840.c | |||
@@ -421,7 +421,7 @@ static int mos7840_handle_new_lsr(struct moschip_port *port, __u8 new_lsr) | |||
421 | /************************************************************************/ | 421 | /************************************************************************/ |
422 | /************************************************************************/ | 422 | /************************************************************************/ |
423 | 423 | ||
424 | static void mos7840_control_callback(struct urb *urb, struct pt_regs *regs) | 424 | static void mos7840_control_callback(struct urb *urb) |
425 | { | 425 | { |
426 | unsigned char *data; | 426 | unsigned char *data; |
427 | struct moschip_port *mos7840_port; | 427 | struct moschip_port *mos7840_port; |
@@ -497,7 +497,7 @@ static int mos7840_get_reg(struct moschip_port *mcs, __u16 Wval, __u16 reg, | |||
497 | * interrupt endpoint. | 497 | * interrupt endpoint. |
498 | *****************************************************************************/ | 498 | *****************************************************************************/ |
499 | 499 | ||
500 | static void mos7840_interrupt_callback(struct urb *urb, struct pt_regs *regs) | 500 | static void mos7840_interrupt_callback(struct urb *urb) |
501 | { | 501 | { |
502 | int result; | 502 | int result; |
503 | int length; | 503 | int length; |
@@ -647,7 +647,7 @@ static struct usb_serial *mos7840_get_usb_serial(struct usb_serial_port *port, | |||
647 | * bulk in endpoint. | 647 | * bulk in endpoint. |
648 | *****************************************************************************/ | 648 | *****************************************************************************/ |
649 | 649 | ||
650 | static void mos7840_bulk_in_callback(struct urb *urb, struct pt_regs *regs) | 650 | static void mos7840_bulk_in_callback(struct urb *urb) |
651 | { | 651 | { |
652 | int status; | 652 | int status; |
653 | unsigned char *data; | 653 | unsigned char *data; |
@@ -726,8 +726,7 @@ static void mos7840_bulk_in_callback(struct urb *urb, struct pt_regs *regs) | |||
726 | * on the bulk out endpoint. | 726 | * on the bulk out endpoint. |
727 | *****************************************************************************/ | 727 | *****************************************************************************/ |
728 | 728 | ||
729 | static void mos7840_bulk_out_data_callback(struct urb *urb, | 729 | static void mos7840_bulk_out_data_callback(struct urb *urb) |
730 | struct pt_regs *regs) | ||
731 | { | 730 | { |
732 | struct moschip_port *mos7840_port; | 731 | struct moschip_port *mos7840_port; |
733 | struct tty_struct *tty; | 732 | struct tty_struct *tty; |
diff --git a/drivers/usb/serial/navman.c b/drivers/usb/serial/navman.c index ac3f8b5d2c49..0610409a6568 100644 --- a/drivers/usb/serial/navman.c +++ b/drivers/usb/serial/navman.c | |||
@@ -32,7 +32,7 @@ static struct usb_driver navman_driver = { | |||
32 | .no_dynamic_id = 1, | 32 | .no_dynamic_id = 1, |
33 | }; | 33 | }; |
34 | 34 | ||
35 | static void navman_read_int_callback(struct urb *urb, struct pt_regs *regs) | 35 | static void navman_read_int_callback(struct urb *urb) |
36 | { | 36 | { |
37 | struct usb_serial_port *port = urb->context; | 37 | struct usb_serial_port *port = urb->context; |
38 | unsigned char *data = urb->transfer_buffer; | 38 | unsigned char *data = urb->transfer_buffer; |
diff --git a/drivers/usb/serial/omninet.c b/drivers/usb/serial/omninet.c index a764ff4e326c..bc91d3b726fc 100644 --- a/drivers/usb/serial/omninet.c +++ b/drivers/usb/serial/omninet.c | |||
@@ -64,8 +64,8 @@ static int debug; | |||
64 | /* function prototypes */ | 64 | /* function prototypes */ |
65 | static int omninet_open (struct usb_serial_port *port, struct file *filp); | 65 | static int omninet_open (struct usb_serial_port *port, struct file *filp); |
66 | static void omninet_close (struct usb_serial_port *port, struct file *filp); | 66 | static void omninet_close (struct usb_serial_port *port, struct file *filp); |
67 | static void omninet_read_bulk_callback (struct urb *urb, struct pt_regs *regs); | 67 | static void omninet_read_bulk_callback (struct urb *urb); |
68 | static void omninet_write_bulk_callback (struct urb *urb, struct pt_regs *regs); | 68 | static void omninet_write_bulk_callback (struct urb *urb); |
69 | static int omninet_write (struct usb_serial_port *port, const unsigned char *buf, int count); | 69 | static int omninet_write (struct usb_serial_port *port, const unsigned char *buf, int count); |
70 | static int omninet_write_room (struct usb_serial_port *port); | 70 | static int omninet_write_room (struct usb_serial_port *port); |
71 | static void omninet_shutdown (struct usb_serial *serial); | 71 | static void omninet_shutdown (struct usb_serial *serial); |
@@ -194,7 +194,7 @@ static void omninet_close (struct usb_serial_port *port, struct file * filp) | |||
194 | #define OMNINET_HEADERLEN sizeof(struct omninet_header) | 194 | #define OMNINET_HEADERLEN sizeof(struct omninet_header) |
195 | #define OMNINET_BULKOUTSIZE (64 - OMNINET_HEADERLEN) | 195 | #define OMNINET_BULKOUTSIZE (64 - OMNINET_HEADERLEN) |
196 | 196 | ||
197 | static void omninet_read_bulk_callback (struct urb *urb, struct pt_regs *regs) | 197 | static void omninet_read_bulk_callback (struct urb *urb) |
198 | { | 198 | { |
199 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; | 199 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; |
200 | unsigned char *data = urb->transfer_buffer; | 200 | unsigned char *data = urb->transfer_buffer; |
@@ -306,7 +306,7 @@ static int omninet_write_room (struct usb_serial_port *port) | |||
306 | return (room); | 306 | return (room); |
307 | } | 307 | } |
308 | 308 | ||
309 | static void omninet_write_bulk_callback (struct urb *urb, struct pt_regs *regs) | 309 | static void omninet_write_bulk_callback (struct urb *urb) |
310 | { | 310 | { |
311 | /* struct omninet_header *header = (struct omninet_header *) urb->transfer_buffer; */ | 311 | /* struct omninet_header *header = (struct omninet_header *) urb->transfer_buffer; */ |
312 | struct usb_serial_port *port = (struct usb_serial_port *) urb->context; | 312 | struct usb_serial_port *port = (struct usb_serial_port *) urb->context; |
diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c index c856e6f40e22..130afbbd3fca 100644 --- a/drivers/usb/serial/option.c +++ b/drivers/usb/serial/option.c | |||
@@ -50,7 +50,7 @@ static void option_rx_throttle(struct usb_serial_port *port); | |||
50 | static void option_rx_unthrottle(struct usb_serial_port *port); | 50 | static void option_rx_unthrottle(struct usb_serial_port *port); |
51 | static int option_write_room(struct usb_serial_port *port); | 51 | static int option_write_room(struct usb_serial_port *port); |
52 | 52 | ||
53 | static void option_instat_callback(struct urb *urb, struct pt_regs *regs); | 53 | static void option_instat_callback(struct urb *urb); |
54 | 54 | ||
55 | static int option_write(struct usb_serial_port *port, | 55 | static int option_write(struct usb_serial_port *port, |
56 | const unsigned char *buf, int count); | 56 | const unsigned char *buf, int count); |
@@ -337,7 +337,7 @@ static int option_write(struct usb_serial_port *port, | |||
337 | return count; | 337 | return count; |
338 | } | 338 | } |
339 | 339 | ||
340 | static void option_indat_callback(struct urb *urb, struct pt_regs *regs) | 340 | static void option_indat_callback(struct urb *urb) |
341 | { | 341 | { |
342 | int err; | 342 | int err; |
343 | int endpoint; | 343 | int endpoint; |
@@ -374,7 +374,7 @@ static void option_indat_callback(struct urb *urb, struct pt_regs *regs) | |||
374 | return; | 374 | return; |
375 | } | 375 | } |
376 | 376 | ||
377 | static void option_outdat_callback(struct urb *urb, struct pt_regs *regs) | 377 | static void option_outdat_callback(struct urb *urb) |
378 | { | 378 | { |
379 | struct usb_serial_port *port; | 379 | struct usb_serial_port *port; |
380 | 380 | ||
@@ -385,7 +385,7 @@ static void option_outdat_callback(struct urb *urb, struct pt_regs *regs) | |||
385 | usb_serial_port_softint(port); | 385 | usb_serial_port_softint(port); |
386 | } | 386 | } |
387 | 387 | ||
388 | static void option_instat_callback(struct urb *urb, struct pt_regs *regs) | 388 | static void option_instat_callback(struct urb *urb) |
389 | { | 389 | { |
390 | int err; | 390 | int err; |
391 | struct usb_serial_port *port = (struct usb_serial_port *) urb->context; | 391 | struct usb_serial_port *port = (struct usb_serial_port *) urb->context; |
@@ -565,7 +565,7 @@ static void option_close(struct usb_serial_port *port, struct file *filp) | |||
565 | /* Helper functions used by option_setup_urbs */ | 565 | /* Helper functions used by option_setup_urbs */ |
566 | static struct urb *option_setup_urb(struct usb_serial *serial, int endpoint, | 566 | static struct urb *option_setup_urb(struct usb_serial *serial, int endpoint, |
567 | int dir, void *ctx, char *buf, int len, | 567 | int dir, void *ctx, char *buf, int len, |
568 | void (*callback)(struct urb *, struct pt_regs *regs)) | 568 | void (*callback)(struct urb *)) |
569 | { | 569 | { |
570 | struct urb *urb; | 570 | struct urb *urb; |
571 | 571 | ||
diff --git a/drivers/usb/serial/pl2303.c b/drivers/usb/serial/pl2303.c index 9c18173e33fb..bc800c8787a8 100644 --- a/drivers/usb/serial/pl2303.c +++ b/drivers/usb/serial/pl2303.c | |||
@@ -948,7 +948,7 @@ static void pl2303_update_line_status(struct usb_serial_port *port, | |||
948 | wake_up_interruptible(&priv->delta_msr_wait); | 948 | wake_up_interruptible(&priv->delta_msr_wait); |
949 | } | 949 | } |
950 | 950 | ||
951 | static void pl2303_read_int_callback(struct urb *urb, struct pt_regs *regs) | 951 | static void pl2303_read_int_callback(struct urb *urb) |
952 | { | 952 | { |
953 | struct usb_serial_port *port = (struct usb_serial_port *) urb->context; | 953 | struct usb_serial_port *port = (struct usb_serial_port *) urb->context; |
954 | unsigned char *data = urb->transfer_buffer; | 954 | unsigned char *data = urb->transfer_buffer; |
@@ -987,7 +987,7 @@ exit: | |||
987 | __FUNCTION__, status); | 987 | __FUNCTION__, status); |
988 | } | 988 | } |
989 | 989 | ||
990 | static void pl2303_read_bulk_callback(struct urb *urb, struct pt_regs *regs) | 990 | static void pl2303_read_bulk_callback(struct urb *urb) |
991 | { | 991 | { |
992 | struct usb_serial_port *port = (struct usb_serial_port *) urb->context; | 992 | struct usb_serial_port *port = (struct usb_serial_port *) urb->context; |
993 | struct pl2303_private *priv = usb_get_serial_port_data(port); | 993 | struct pl2303_private *priv = usb_get_serial_port_data(port); |
@@ -1070,7 +1070,7 @@ static void pl2303_read_bulk_callback(struct urb *urb, struct pt_regs *regs) | |||
1070 | return; | 1070 | return; |
1071 | } | 1071 | } |
1072 | 1072 | ||
1073 | static void pl2303_write_bulk_callback(struct urb *urb, struct pt_regs *regs) | 1073 | static void pl2303_write_bulk_callback(struct urb *urb) |
1074 | { | 1074 | { |
1075 | struct usb_serial_port *port = (struct usb_serial_port *) urb->context; | 1075 | struct usb_serial_port *port = (struct usb_serial_port *) urb->context; |
1076 | struct pl2303_private *priv = usb_get_serial_port_data(port); | 1076 | struct pl2303_private *priv = usb_get_serial_port_data(port); |
diff --git a/drivers/usb/serial/safe_serial.c b/drivers/usb/serial/safe_serial.c index 1e07dfad6853..30b7ebc8d45d 100644 --- a/drivers/usb/serial/safe_serial.c +++ b/drivers/usb/serial/safe_serial.c | |||
@@ -204,7 +204,7 @@ static __u16 __inline__ fcs_compute10 (unsigned char *sp, int len, __u16 fcs) | |||
204 | return fcs; | 204 | return fcs; |
205 | } | 205 | } |
206 | 206 | ||
207 | static void safe_read_bulk_callback (struct urb *urb, struct pt_regs *regs) | 207 | static void safe_read_bulk_callback (struct urb *urb) |
208 | { | 208 | { |
209 | struct usb_serial_port *port = (struct usb_serial_port *) urb->context; | 209 | struct usb_serial_port *port = (struct usb_serial_port *) urb->context; |
210 | unsigned char *data = urb->transfer_buffer; | 210 | unsigned char *data = urb->transfer_buffer; |
diff --git a/drivers/usb/serial/ti_usb_3410_5052.c b/drivers/usb/serial/ti_usb_3410_5052.c index ac9b8ee52d44..07400c0c8a8c 100644 --- a/drivers/usb/serial/ti_usb_3410_5052.c +++ b/drivers/usb/serial/ti_usb_3410_5052.c | |||
@@ -166,9 +166,9 @@ 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); |
168 | static void ti_break(struct usb_serial_port *port, int break_state); | 168 | static void ti_break(struct usb_serial_port *port, int break_state); |
169 | static void ti_interrupt_callback(struct urb *urb, struct pt_regs *regs); | 169 | static void ti_interrupt_callback(struct urb *urb); |
170 | static void ti_bulk_in_callback(struct urb *urb, struct pt_regs *regs); | 170 | static void ti_bulk_in_callback(struct urb *urb); |
171 | static void ti_bulk_out_callback(struct urb *urb, struct pt_regs *regs); | 171 | static void ti_bulk_out_callback(struct urb *urb); |
172 | 172 | ||
173 | static void ti_recv(struct device *dev, struct tty_struct *tty, | 173 | static void ti_recv(struct device *dev, struct tty_struct *tty, |
174 | unsigned char *data, int length); | 174 | unsigned char *data, int length); |
@@ -1098,7 +1098,7 @@ static void ti_break(struct usb_serial_port *port, int break_state) | |||
1098 | } | 1098 | } |
1099 | 1099 | ||
1100 | 1100 | ||
1101 | static void ti_interrupt_callback(struct urb *urb, struct pt_regs *regs) | 1101 | static void ti_interrupt_callback(struct urb *urb) |
1102 | { | 1102 | { |
1103 | struct ti_device *tdev = (struct ti_device *)urb->context; | 1103 | struct ti_device *tdev = (struct ti_device *)urb->context; |
1104 | struct usb_serial_port *port; | 1104 | struct usb_serial_port *port; |
@@ -1178,7 +1178,7 @@ exit: | |||
1178 | } | 1178 | } |
1179 | 1179 | ||
1180 | 1180 | ||
1181 | static void ti_bulk_in_callback(struct urb *urb, struct pt_regs *regs) | 1181 | static void ti_bulk_in_callback(struct urb *urb) |
1182 | { | 1182 | { |
1183 | struct ti_port *tport = (struct ti_port *)urb->context; | 1183 | struct ti_port *tport = (struct ti_port *)urb->context; |
1184 | struct usb_serial_port *port = tport->tp_port; | 1184 | struct usb_serial_port *port = tport->tp_port; |
@@ -1241,7 +1241,7 @@ exit: | |||
1241 | } | 1241 | } |
1242 | 1242 | ||
1243 | 1243 | ||
1244 | static void ti_bulk_out_callback(struct urb *urb, struct pt_regs *regs) | 1244 | static void ti_bulk_out_callback(struct urb *urb) |
1245 | { | 1245 | { |
1246 | struct ti_port *tport = (struct ti_port *)urb->context; | 1246 | struct ti_port *tport = (struct ti_port *)urb->context; |
1247 | struct usb_serial_port *port = tport->tp_port; | 1247 | struct usb_serial_port *port = tport->tp_port; |
diff --git a/drivers/usb/serial/visor.c b/drivers/usb/serial/visor.c index 88949f7884ca..befe2e11a041 100644 --- a/drivers/usb/serial/visor.c +++ b/drivers/usb/serial/visor.c | |||
@@ -47,9 +47,9 @@ 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 termios *old_termios); |
50 | static void visor_write_bulk_callback (struct urb *urb, struct pt_regs *regs); | 50 | static void visor_write_bulk_callback (struct urb *urb); |
51 | static void visor_read_bulk_callback (struct urb *urb, struct pt_regs *regs); | 51 | static void visor_read_bulk_callback (struct urb *urb); |
52 | static void visor_read_int_callback (struct urb *urb, struct pt_regs *regs); | 52 | static void visor_read_int_callback (struct urb *urb); |
53 | static int clie_3_5_startup (struct usb_serial *serial); | 53 | static int clie_3_5_startup (struct usb_serial *serial); |
54 | static int treo_attach (struct usb_serial *serial); | 54 | static int treo_attach (struct usb_serial *serial); |
55 | static int clie_5_attach (struct usb_serial *serial); | 55 | static int clie_5_attach (struct usb_serial *serial); |
@@ -471,7 +471,7 @@ static int visor_chars_in_buffer (struct usb_serial_port *port) | |||
471 | } | 471 | } |
472 | 472 | ||
473 | 473 | ||
474 | static void visor_write_bulk_callback (struct urb *urb, struct pt_regs *regs) | 474 | static void visor_write_bulk_callback (struct urb *urb) |
475 | { | 475 | { |
476 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; | 476 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; |
477 | struct visor_private *priv = usb_get_serial_port_data(port); | 477 | struct visor_private *priv = usb_get_serial_port_data(port); |
@@ -494,7 +494,7 @@ static void visor_write_bulk_callback (struct urb *urb, struct pt_regs *regs) | |||
494 | } | 494 | } |
495 | 495 | ||
496 | 496 | ||
497 | static void visor_read_bulk_callback (struct urb *urb, struct pt_regs *regs) | 497 | static void visor_read_bulk_callback (struct urb *urb) |
498 | { | 498 | { |
499 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; | 499 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; |
500 | struct visor_private *priv = usb_get_serial_port_data(port); | 500 | struct visor_private *priv = usb_get_serial_port_data(port); |
@@ -539,7 +539,7 @@ static void visor_read_bulk_callback (struct urb *urb, struct pt_regs *regs) | |||
539 | return; | 539 | return; |
540 | } | 540 | } |
541 | 541 | ||
542 | static void visor_read_int_callback (struct urb *urb, struct pt_regs *regs) | 542 | static void visor_read_int_callback (struct urb *urb) |
543 | { | 543 | { |
544 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; | 544 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; |
545 | int result; | 545 | int result; |
diff --git a/drivers/usb/serial/whiteheat.c b/drivers/usb/serial/whiteheat.c index 6e6c7934be32..4d1cd7aeccd3 100644 --- a/drivers/usb/serial/whiteheat.c +++ b/drivers/usb/serial/whiteheat.c | |||
@@ -152,8 +152,8 @@ static void whiteheat_break_ctl (struct usb_serial_port *port, int break_state) | |||
152 | static int whiteheat_chars_in_buffer (struct usb_serial_port *port); | 152 | static int whiteheat_chars_in_buffer (struct usb_serial_port *port); |
153 | static void whiteheat_throttle (struct usb_serial_port *port); | 153 | static void whiteheat_throttle (struct usb_serial_port *port); |
154 | static void whiteheat_unthrottle (struct usb_serial_port *port); | 154 | static void whiteheat_unthrottle (struct usb_serial_port *port); |
155 | static void whiteheat_read_callback (struct urb *urb, struct pt_regs *regs); | 155 | static void whiteheat_read_callback (struct urb *urb); |
156 | static void whiteheat_write_callback (struct urb *urb, struct pt_regs *regs); | 156 | static void whiteheat_write_callback (struct urb *urb); |
157 | 157 | ||
158 | static struct usb_serial_driver whiteheat_fake_device = { | 158 | static struct usb_serial_driver whiteheat_fake_device = { |
159 | .driver = { | 159 | .driver = { |
@@ -235,8 +235,8 @@ struct whiteheat_private { | |||
235 | /* local function prototypes */ | 235 | /* local function prototypes */ |
236 | static int start_command_port(struct usb_serial *serial); | 236 | static int start_command_port(struct usb_serial *serial); |
237 | static void stop_command_port(struct usb_serial *serial); | 237 | static void stop_command_port(struct usb_serial *serial); |
238 | static void command_port_write_callback(struct urb *urb, struct pt_regs *regs); | 238 | static void command_port_write_callback(struct urb *urb); |
239 | static void command_port_read_callback(struct urb *urb, struct pt_regs *regs); | 239 | static void command_port_read_callback(struct urb *urb); |
240 | 240 | ||
241 | static int start_port_read(struct usb_serial_port *port); | 241 | static int start_port_read(struct usb_serial_port *port); |
242 | static struct whiteheat_urb_wrap *urb_to_wrap(struct urb *urb, struct list_head *head); | 242 | static struct whiteheat_urb_wrap *urb_to_wrap(struct urb *urb, struct list_head *head); |
@@ -958,7 +958,7 @@ static void whiteheat_unthrottle (struct usb_serial_port *port) | |||
958 | /***************************************************************************** | 958 | /***************************************************************************** |
959 | * Connect Tech's White Heat callback routines | 959 | * Connect Tech's White Heat callback routines |
960 | *****************************************************************************/ | 960 | *****************************************************************************/ |
961 | static void command_port_write_callback (struct urb *urb, struct pt_regs *regs) | 961 | static void command_port_write_callback (struct urb *urb) |
962 | { | 962 | { |
963 | dbg("%s", __FUNCTION__); | 963 | dbg("%s", __FUNCTION__); |
964 | 964 | ||
@@ -969,7 +969,7 @@ static void command_port_write_callback (struct urb *urb, struct pt_regs *regs) | |||
969 | } | 969 | } |
970 | 970 | ||
971 | 971 | ||
972 | static void command_port_read_callback (struct urb *urb, struct pt_regs *regs) | 972 | static void command_port_read_callback (struct urb *urb) |
973 | { | 973 | { |
974 | struct usb_serial_port *command_port = (struct usb_serial_port *)urb->context; | 974 | struct usb_serial_port *command_port = (struct usb_serial_port *)urb->context; |
975 | struct whiteheat_command_private *command_info; | 975 | struct whiteheat_command_private *command_info; |
@@ -1019,7 +1019,7 @@ static void command_port_read_callback (struct urb *urb, struct pt_regs *regs) | |||
1019 | } | 1019 | } |
1020 | 1020 | ||
1021 | 1021 | ||
1022 | static void whiteheat_read_callback(struct urb *urb, struct pt_regs *regs) | 1022 | static void whiteheat_read_callback(struct urb *urb) |
1023 | { | 1023 | { |
1024 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; | 1024 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; |
1025 | struct whiteheat_urb_wrap *wrap; | 1025 | struct whiteheat_urb_wrap *wrap; |
@@ -1061,7 +1061,7 @@ static void whiteheat_read_callback(struct urb *urb, struct pt_regs *regs) | |||
1061 | } | 1061 | } |
1062 | 1062 | ||
1063 | 1063 | ||
1064 | static void whiteheat_write_callback(struct urb *urb, struct pt_regs *regs) | 1064 | static void whiteheat_write_callback(struct urb *urb) |
1065 | { | 1065 | { |
1066 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; | 1066 | struct usb_serial_port *port = (struct usb_serial_port *)urb->context; |
1067 | struct whiteheat_private *info = usb_get_serial_port_data(port); | 1067 | struct whiteheat_private *info = usb_get_serial_port_data(port); |