Skip to content

Commit

Permalink
Input: gpio-keys - use IRQF_SHARED
Browse files Browse the repository at this point in the history
There is nothing that disallows gpio-keys to share it's IRQ line
w/ other drivers. Make it use IRQF_SHARED in request_irq().

An example of other driver with which I'd like to share IRQ line
for GPIO buttons is ledtrig-gpio.

Signed-off-by: Dmitry Eremin-Solenikov <[email protected]>
Signed-off-by: Dmitry Torokhov <[email protected]>
  • Loading branch information
lumag authored and dtor committed Nov 3, 2009
1 parent 0baa3de commit 558a5e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/input/keyboard/gpio_keys.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ static int __devinit gpio_keys_probe(struct platform_device *pdev)
}

error = request_irq(irq, gpio_keys_isr,
IRQF_SHARED |
IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING,
button->desc ? button->desc : "gpio_keys",
bdata);
Expand Down

0 comments on commit 558a5e2

Please sign in to comment.