summaryrefslogtreecommitdiffstats
path: root/charger
diff options
context:
space:
mode:
authorDima Zavin <dima@android.com>2011-10-13 13:04:20 -0700
committerDima Zavin <dima@android.com>2011-10-13 13:04:38 -0700
commit471157a393d052aece013d1f8b7701aaadca3b6c (patch)
treefbd95382847877a5113d69c141541413ced6cd38 /charger
parent47cca063939a9d5a3ea0b287d64aac0f53f4c45c (diff)
downloadsystem_core-471157a393d052aece013d1f8b7701aaadca3b6c.zip
system_core-471157a393d052aece013d1f8b7701aaadca3b6c.tar.gz
system_core-471157a393d052aece013d1f8b7701aaadca3b6c.tar.bz2
charger: key state being the same is not an error
Change-Id: I58d53899dbcca8329b65b189c1a6c5eea413c289 Signed-off-by: Dima Zavin <dima@android.com>
Diffstat (limited to 'charger')
-rw-r--r--charger/charger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/charger/charger.c b/charger/charger.c
index aface7e..03280bf 100644
--- a/charger/charger.c
+++ b/charger/charger.c
@@ -756,7 +756,7 @@ static int set_key_callback(int code, int value, void *data)
/* ignore events that don't modify our state */
if (charger->keys[code].down == down)
- return -1;
+ return 0;
/* only record the down even timestamp, as the amount
* of time the key spent not being pressed is not useful */