diff options
author | Paul Kocialkowski <contact@paulk.fr> | 2016-09-03 00:09:53 +0200 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2016-09-05 12:59:49 +0200 |
commit | c65a8b51123a14f6960e4238bfa4673d54ee183a (patch) | |
tree | 6c71dafdd88c4ff44c84b4b809229df38061b889 /ipc | |
parent | 3b5dd3a49496220b35af83c96e3d2ff5716550ae (diff) | |
download | linux-stable-c65a8b51123a14f6960e4238bfa4673d54ee183a.tar.gz linux-stable-c65a8b51123a14f6960e4238bfa4673d54ee183a.tar.bz2 linux-stable-c65a8b51123a14f6960e4238bfa4673d54ee183a.zip |
power: supply: bq24735-charger: Request status GPIO with initial input setup
This requests the status GPIO with initial input setup. It is required
to read the GPIO status at probe time and thus correctly avoid sending
I2C messages when AC is not plugged.
When requesting the GPIO without initial input setup, it always reads 0
which causes probe to fail as it assumes the charger is connected, sends
I2C messages and fails.
While at it, this switches the driver over to gpiod API.
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions