]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
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)
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

index efc2c6a78661a01b058f6837e8e28611be199309..de45e1a2a4d9e3e35851255316e7574ea187cbe2 100644 (file)
@@ -27,8 +27,8 @@ Optional properties :
  - ti,external-control : Indicates that the charger is configured externally
    and that the host should not attempt to enable/disable charging or set the
    charge voltage/current.
- - poll-interval : In case 'interrupts' is not specified, poll AC presence
-   on the ti,ac-detect-gpios GPIO with this interval (milliseconds).
+ - poll-interval : In case 'interrupts' is not specified, poll AC adapter
+   presence with this interval (milliseconds).
 
 Example:
 
index 4f6275e5cf1cd3d2e35859091e64133f51b18d9e..d8be81203837f8928193409ad5dcdbcaf335fc7f 100644 (file)
@@ -468,7 +468,7 @@ static int bq24735_charger_probe(struct i2c_client *client,
                                client->irq, ret);
                        return ret;
                }
-       } else if (charger->status_gpio) {
+       } else {
                ret = device_property_read_u32(&client->dev, "poll-interval",
                                               &charger->poll_interval);
                if (ret)