diff options
author | Mike Baker <mbm@openwrt.org> | 2006-12-01 22:31:11 +0000 |
---|---|---|
committer | Mike Baker <mbm@openwrt.org> | 2006-12-01 22:31:11 +0000 |
commit | 153d028622515140c83ce517cdb58c8d522b7316 (patch) | |
tree | e4f0a0a1c95215c6256299cc584b5335ed862d50 | |
parent | 0af00df4ff6bb6468dda02c4697fe38f150b2aea (diff) | |
download | upstream-153d028622515140c83ce517cdb58c8d522b7316.tar.gz upstream-153d028622515140c83ce517cdb58c8d522b7316.tar.bz2 upstream-153d028622515140c83ce517cdb58c8d522b7316.zip |
Ignore false button events generated by switch gpio use
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5687 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | package/broadcom-diag/src/diag.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/package/broadcom-diag/src/diag.c b/package/broadcom-diag/src/diag.c index e17f255e5b..b0def22e46 100644 --- a/package/broadcom-diag/src/diag.c +++ b/package/broadcom-diag/src/diag.c @@ -556,6 +556,8 @@ static irqreturn_t button_handler(int irq, void *dev_id, struct pt_regs *regs) changed = platform.button_polarity ^ in; platform.button_polarity = in; + changed &= ~gpio_outen(0, 0); + for (b = platform.buttons; b->name; b++) { struct event_t *event; |