diff options
author | Anti Sullin <anti.sullin@artecdesign.ee> | 2007-09-26 00:01:03 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2007-09-26 00:01:03 -0400 |
commit | 006df3024431a50262d4a2898d25924f84fb697a (patch) | |
tree | 556a42e2e3bc47e947e509fff0ae6613db531628 /drivers/base | |
parent | 2a8281d72da5dd8da025e6822dadd23a35383895 (diff) |
Input: gpio_keys - verify that supplied GPIO numbers are valid
As David Brownell pointed out, gpio_keys driver does not check
return code of gpio_to_irq().
This patch adds the gpio_to_irq return code check to gpio_keys
and moves the IRQ edge type setting to request_irq flags to avoid
changing the irq type before we have confirmed we can use it.
Signed-off-by: Anti Sullin <anti.sullin@artecdesign.ee>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/base')
0 files changed, 0 insertions, 0 deletions