mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
mfd: Convert wm8350 IRQ handlers to irq_handler_t
This is done as simple code transformation, the semantics of the IRQ API provided by the core are are still very different to those of genirq (mainly with regard to masking). Signed-off-by: Mark Brown <[email protected]> Signed-off-by: Samuel Ortiz <[email protected]>
This commit is contained in:
parent
b9f96b5dcb
commit
5a65edbc12
6 changed files with 59 additions and 34 deletions
|
|
@ -371,7 +371,7 @@ static void wm8350_irq_call_handler(struct wm8350 *wm8350, int irq)
|
|||
mutex_lock(&wm8350->irq_mutex);
|
||||
|
||||
if (wm8350->irq[irq].handler)
|
||||
wm8350->irq[irq].handler(wm8350, irq, wm8350->irq[irq].data);
|
||||
wm8350->irq[irq].handler(irq, wm8350->irq[irq].data);
|
||||
else {
|
||||
dev_err(wm8350->dev, "irq %d nobody cared. now masked.\n",
|
||||
irq);
|
||||
|
|
@ -431,8 +431,8 @@ static irqreturn_t wm8350_irq(int irq, void *irq_data)
|
|||
}
|
||||
|
||||
int wm8350_register_irq(struct wm8350 *wm8350, int irq,
|
||||
void (*handler) (struct wm8350 *, int, void *),
|
||||
void *data)
|
||||
irq_handler_t handler, unsigned long flags,
|
||||
const char *name, void *data)
|
||||
{
|
||||
if (irq < 0 || irq > WM8350_NUM_IRQ || !handler)
|
||||
return -EINVAL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue