twl4030_charger: trust phy to determine when USB power is available.
authorNeilBrown <neil@brown.name>
Thu, 30 Jul 2015 00:11:24 +0000 (10:11 +1000)
committerSebastian Reichel <sre@kernel.org>
Wed, 5 Aug 2015 03:12:42 +0000 (05:12 +0200)
commit6e37ec8c77e3e6580cbb844dfeea0fb3970c0a35
treee43fe55e8e54f1b3864fafefefb92c47344bb6d0
parent3fc3895e4fe17ee92ae1d1bb9f04da6069e8c370
twl4030_charger: trust phy to determine when USB power is available.

The usb phy driver already determines when VBUS is available,
so repeating the test in the charger driver is pointless duplication.

On probe, process the last event from the phy, and from then on,
do whatever the phy tells us without double-checking.

Signed-off-by: NeilBrown <neil@brown.name>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/twl4030_charger.c