power: bq24190_charger: Use PM runtime autosuspend
authorTony Lindgren <tony@atomide.com>
Wed, 8 Feb 2017 23:13:01 +0000 (15:13 -0800)
committerSebastian Reichel <sre@kernel.org>
Thu, 13 Apr 2017 23:41:33 +0000 (01:41 +0200)
commitf385e6e2a153233033aa348766bac21125651d05
treea67c9d5dcb50803425dddf1e7d20c7c5d09251a8
parent35c3c196d3948d6862b19112d19b8dda880083ff
power: bq24190_charger: Use PM runtime autosuspend

We can get quite a few interrupts when the battery is trickle charging.
Let's enable PM runtime autosuspend to avoid constantly toggling device
driver PM runtime state.

Let's use a 600 ms timeout as that's how long the USB chager detection
might take.

Acked-by: Mark Greer <mgreer@animalcreek.com>
Acked-by: Liam Breck <kernel@networkimprov.net>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/supply/bq24190_charger.c