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 /include/linux/power | |
parent | 3b5dd3a49496220b35af83c96e3d2ff5716550ae (diff) |
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 'include/linux/power')
-rw-r--r-- | include/linux/power/bq24735-charger.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/include/linux/power/bq24735-charger.h b/include/linux/power/bq24735-charger.h index 6b750c1a45fa..b04be59f914c 100644 --- a/include/linux/power/bq24735-charger.h +++ b/include/linux/power/bq24735-charger.h @@ -28,10 +28,6 @@ struct bq24735_platform { const char *name; - int status_gpio; - int status_gpio_active_low; - bool status_gpio_valid; - bool ext_control; char **supplied_to; |