diff options
author | Lee Jones <lee.jones@linaro.org> | 2013-01-07 07:23:48 -0500 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-02-08 08:25:33 -0500 |
commit | 40f6e5a2b52eda7864b7167fb5af1c310b464766 (patch) | |
tree | 5bd5c4686542d35229ed07c89db35b9d983cc7e3 | |
parent | e2ddf46ab4ab40a657a1808cf4e358c46ae1ba68 (diff) |
mfd: ab8500: provide a irq_set_type() function
In the AB8500 IRQ mask and unmask functions, we rely on testing for
IRQ_TYPE_EDGE_RISING and IRQ_TYPE_EDGE_FALLING interrupts to
physically mask and unmask the correct interrupt lines. In order
for us to do that, the trigger needs to be set in the associated
flags. However, unless a irq_set_type() function pointer is passed
when registering the IRQ chip, the IRQ subsystem will refuse to do
it. For that reason, we're providing one.
Cc: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r-- | drivers/mfd/ab8500-core.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/mfd/ab8500-core.c b/drivers/mfd/ab8500-core.c index 6d6666b0f1b2..0f1b9b788d07 100644 --- a/drivers/mfd/ab8500-core.c +++ b/drivers/mfd/ab8500-core.c | |||
@@ -407,6 +407,11 @@ static void ab8500_irq_unmask(struct irq_data *data) | |||
407 | } | 407 | } |
408 | } | 408 | } |
409 | 409 | ||
410 | static int ab8500_irq_set_type(struct irq_data *data, unsigned int type) | ||
411 | { | ||
412 | return 0; | ||
413 | } | ||
414 | |||
410 | static struct irq_chip ab8500_irq_chip = { | 415 | static struct irq_chip ab8500_irq_chip = { |
411 | .name = "ab8500", | 416 | .name = "ab8500", |
412 | .irq_bus_lock = ab8500_irq_lock, | 417 | .irq_bus_lock = ab8500_irq_lock, |
@@ -414,6 +419,7 @@ static struct irq_chip ab8500_irq_chip = { | |||
414 | .irq_mask = ab8500_irq_mask, | 419 | .irq_mask = ab8500_irq_mask, |
415 | .irq_disable = ab8500_irq_mask, | 420 | .irq_disable = ab8500_irq_mask, |
416 | .irq_unmask = ab8500_irq_unmask, | 421 | .irq_unmask = ab8500_irq_unmask, |
422 | .irq_set_type = ab8500_irq_set_type, | ||
417 | }; | 423 | }; |
418 | 424 | ||
419 | static int ab8500_handle_hierarchical_line(struct ab8500 *ab8500, | 425 | static int ab8500_handle_hierarchical_line(struct ab8500 *ab8500, |