power: supply: bq24735-charger: optionally poll the ac-detect gpio
authorPeter Rosin <peda@axentia.se>
Thu, 15 Dec 2016 09:28:46 +0000 (10:28 +0100)
committerSebastian Reichel <sre@kernel.org>
Wed, 4 Jan 2017 20:59:23 +0000 (21:59 +0100)
commitbf383fea1fdde944839c8aca6a19d338feea715b
tree1fc89eb7a9788ea8f96fd739c0dfaa875a3380ec
parent248efcf00602f0282587999bcc221a872bd72530
power: supply: bq24735-charger: optionally poll the ac-detect gpio

If the ac-detect gpio does not support interrupts, provide a fallback
to poll the gpio at a configurable interval.

Signed-off-by: Peter Rosin <peda@axentia.se>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Documentation/devicetree/bindings/power/supply/ti,bq24735.txt
drivers/power/supply/bq24735-charger.c