diff options
author | Phil Reid <preid@electromag.com.au> | 2016-09-01 09:50:52 +0200 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2016-09-01 16:06:14 +0200 |
commit | 3b5dd3a49496220b35af83c96e3d2ff5716550ae (patch) | |
tree | 31b06b095bcfd1920da2759c1db89c3fe46f33d0 /drivers/power/supply/max8903_charger.c | |
parent | power: supply: act8945a_charger: Add max current property (diff) | |
download | linux-3b5dd3a49496220b35af83c96e3d2ff5716550ae.tar.xz linux-3b5dd3a49496220b35af83c96e3d2ff5716550ae.zip |
power: supply: sbs-battery: Use gpio_desc and sleeping calls for battery detect
Switch to using new gpio_desc interface and devm gpio get calls to
automatically manage gpio resource. Use gpiod_get_value which handles
active high / low calls.
If gpio_detect is set then force loading of the driver as it is
reasonable to assume that the battery may not be present.
Update the is_present flag immediately in the IRQ.
Remove legacy gpio specification from platform data.
Signed-off-by: Phil Reid <preid@electromag.com.au>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Diffstat (limited to 'drivers/power/supply/max8903_charger.c')
0 files changed, 0 insertions, 0 deletions