power: supply: bq24735: allow polling even if there is no ac-detect gpio
authorPeter Rosin <peda@axentia.se>
Wed, 21 Dec 2016 21:29:52 +0000 (22:29 +0100)
committerSebastian Reichel <sre@kernel.org>
Wed, 4 Jan 2017 21:03:28 +0000 (22:03 +0100)
commitdbff4c8eaa85dca221f07c1d9669a1d58658199b
tree259632c3ce9b13416369778b970e4b3d487cafb2
parent577b1f06e22057e9cdc14b1ee5bd25435c71ff0f
power: supply: bq24735: allow polling even if there is no ac-detect gpio

It is possible to verify AC adapter presence via a register read, without
any physical connection to the ACOK pin on the charger. Allow this.

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