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>
This commit is contained in:
Peter Rosin 2016-12-15 10:28:46 +01:00 • committed by Sebastian Reichel
commit bf383fea1f
2 changed files with 46 additions and 5 deletions