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

2016-12-13 Thread Rob Herring
On Mon, Dec 12, 2016 at 12:00:23PM +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 > --- > .../bindings/power/supply/ti,bq24735.txt | 2 + > drivers/power/su

[PATCH 2/3] power: supply: bq24735-charger: optionally poll the ac-detect gpio

2016-12-12 Thread Peter Rosin
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 --- .../bindings/power/supply/ti,bq24735.txt | 2 + drivers/power/supply/bq24735-charger.c | 50 +++--- 2 files cha