diff options
author | Hans de Goede <[email protected]> | 2015-06-24 14:25:54 -0700 |
---|---|---|
committer | Dmitry Torokhov <[email protected]> | 2015-06-24 14:55:53 -0700 |
commit | eeeee40fcc3f92745639cfb166854656dddeb040 (patch) | |
tree | 4a842eec593de3d68a0a31f4dc3ab57d2ad3e893 /lib/mpi | |
parent | cae705baa40b2c20de8f9bb79ef4bcc6b2418c7c (diff) |
Input: axp20x-pek - fix reporting button state as inverted
Currently we are reporting the button state as inverted on all boards with
an axp209 pmic, tested on a ba10-tvbox, bananapi, bananapro, cubietruck and
utoo-p66 tablet.
The axp209 datasheet clearly states that the power button must be connected
between the PWRON key and ground. Which means that on a press we will get
a falling edge (dbf) irq not a rising one, and likewise on release we will
get a rising edge (dbr) irq, not a falling one.
This commit swaps the check for the 2 irqs fixing the inverted reporting of
the power button state.
Signed-off-by: Hans de Goede <[email protected]>
Acked-by: Chen-Yu Tsai <[email protected]>
Acked-by: Carlo Caione <[email protected]>
Signed-off-by: Dmitry Torokhov <[email protected]>
Diffstat (limited to 'lib/mpi')
0 files changed, 0 insertions, 0 deletions