charger: key state being the same is not an error
Change-Id: I58d53899dbcca8329b65b189c1a6c5eea413c289 Signed-off-by: Dima Zavin <dima@android.com>
This commit is contained in:
parent
47cca06393
commit
471157a393
1 changed files with 1 additions and 1 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue