Re: [PATCH v3] power: supply: bq24735-charger: optionally poll the ac-detect gpio

From: Rob Herring
Date: Mon Dec 19 2016 - 17:16:11 EST


On Thu, Dec 15, 2016 at 10:28:46AM +0100, Peter Rosin wrote:
> 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@xxxxxxxxxx>
> ---
>
> v2 -> v3 changes:
> - use device_property_read_u32 instead of of_property_read_u32
>
> v1 -> v2 changes:
> - use poll-interval instead of ti,poll-interval-ms in the bindings
>
> Cheers,
> peda
>
> .../bindings/power/supply/ti,bq24735.txt | 2 +

Acked-by: Rob Herring <robh@xxxxxxxxxx>

> drivers/power/supply/bq24735-charger.c | 49 +++++++++++++++++++---
> 2 files changed, 46 insertions(+), 5 deletions(-)