diff options
author | Jeff Garzik <jeff@garzik.org> | 2007-10-19 02:54:26 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-10-23 19:53:16 -0400 |
commit | 5712cb3d81566893c3b14e24075cf48ec5c35d00 (patch) | |
tree | 8258fb24a0c5130e8c0cad16d2d9395941be3ed7 /include | |
parent | f230d1010ad0dcd71d9ca8ea6864afac49c5aa9b (diff) |
[PARPORT] Remove unused 'irq' argument from parport irq functions
None of the drivers with a struct pardevice's ->irq_func() hook ever
used the 'irq' argument passed to it, so remove it.
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/parport.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/include/linux/parport.h b/include/linux/parport.h index 557c37de1f3..d1ad546c8c9 100644 --- a/include/linux/parport.h +++ b/include/linux/parport.h | |||
@@ -230,7 +230,7 @@ struct pardevice { | |||
230 | int (*preempt)(void *); | 230 | int (*preempt)(void *); |
231 | void (*wakeup)(void *); | 231 | void (*wakeup)(void *); |
232 | void *private; | 232 | void *private; |
233 | void (*irq_func)(int, void *); | 233 | void (*irq_func)(void *); |
234 | unsigned int flags; | 234 | unsigned int flags; |
235 | struct pardevice *next; | 235 | struct pardevice *next; |
236 | struct pardevice *prev; | 236 | struct pardevice *prev; |
@@ -383,7 +383,7 @@ extern void parport_put_port (struct parport *); | |||
383 | struct pardevice *parport_register_device(struct parport *port, | 383 | struct pardevice *parport_register_device(struct parport *port, |
384 | const char *name, | 384 | const char *name, |
385 | int (*pf)(void *), void (*kf)(void *), | 385 | int (*pf)(void *), void (*kf)(void *), |
386 | void (*irq_func)(int, void *), | 386 | void (*irq_func)(void *), |
387 | int flags, void *handle); | 387 | int flags, void *handle); |
388 | 388 | ||
389 | /* parport_unregister unlinks a device from the chain. */ | 389 | /* parport_unregister unlinks a device from the chain. */ |
@@ -507,11 +507,7 @@ extern size_t parport_ieee1284_epp_read_addr (struct parport *, | |||
507 | /* IEEE1284.3 functions */ | 507 | /* IEEE1284.3 functions */ |
508 | extern int parport_daisy_init (struct parport *port); | 508 | extern int parport_daisy_init (struct parport *port); |
509 | extern void parport_daisy_fini (struct parport *port); | 509 | extern void parport_daisy_fini (struct parport *port); |
510 | extern struct pardevice *parport_open (int devnum, const char *name, | 510 | extern struct pardevice *parport_open (int devnum, const char *name); |
511 | int (*pf) (void *), | ||
512 | void (*kf) (void *), | ||
513 | void (*irqf) (int, void *), | ||
514 | int flags, void *handle); | ||
515 | extern void parport_close (struct pardevice *dev); | 511 | extern void parport_close (struct pardevice *dev); |
516 | extern ssize_t parport_device_id (int devnum, char *buffer, size_t len); | 512 | extern ssize_t parport_device_id (int devnum, char *buffer, size_t len); |
517 | extern void parport_daisy_deselect_all (struct parport *port); | 513 | extern void parport_daisy_deselect_all (struct parport *port); |
@@ -523,7 +519,7 @@ static inline void parport_generic_irq(struct parport *port) | |||
523 | parport_ieee1284_interrupt (port); | 519 | parport_ieee1284_interrupt (port); |
524 | read_lock(&port->cad_lock); | 520 | read_lock(&port->cad_lock); |
525 | if (port->cad && port->cad->irq_func) | 521 | if (port->cad && port->cad->irq_func) |
526 | port->cad->irq_func(port->irq, port->cad->private); | 522 | port->cad->irq_func(port->cad->private); |
527 | read_unlock(&port->cad_lock); | 523 | read_unlock(&port->cad_lock); |
528 | } | 524 | } |
529 | 525 | ||