mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-25 08:02:56 +00:00
IRQ: Typedef the IRQ handler function type
Typedef the IRQ handler function type. Signed-Off-By: David Howells <dhowells@redhat.com> (cherry picked from 1356d1e5fd256997e3d3dce0777ab787d0515c7a commit)
This commit is contained in:
parent
57a58a9435
commit
da482792a6
2 changed files with 5 additions and 6 deletions
|
@ -64,8 +64,10 @@
|
|||
#define SA_TRIGGER_RISING IRQF_TRIGGER_RISING
|
||||
#define SA_TRIGGER_MASK IRQF_TRIGGER_MASK
|
||||
|
||||
typedef irqreturn_t (*irq_handler_t)(int, void *, struct pt_regs *);
|
||||
|
||||
struct irqaction {
|
||||
irqreturn_t (*handler)(int, void *, struct pt_regs *);
|
||||
irq_handler_t handler;
|
||||
unsigned long flags;
|
||||
cpumask_t mask;
|
||||
const char *name;
|
||||
|
@ -76,8 +78,7 @@ struct irqaction {
|
|||
};
|
||||
|
||||
extern irqreturn_t no_action(int cpl, void *dev_id, struct pt_regs *regs);
|
||||
extern int request_irq(unsigned int,
|
||||
irqreturn_t (*handler)(int, void *, struct pt_regs *),
|
||||
extern int request_irq(unsigned int, irq_handler_t handler,
|
||||
unsigned long, const char *, void *);
|
||||
extern void free_irq(unsigned int, void *);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue