isp1704_charger: Detect charger after probe
authorHeikki Krogerus <heikki.krogerus@nokia.com>
Mon, 8 Nov 2010 10:22:40 +0000 (12:22 +0200)
committerAnton Vorontsov <cbouatmailru@gmail.com>
Thu, 18 Nov 2010 13:56:21 +0000 (16:56 +0300)
commite1a85694e08d03efae9e08fdb292dfd4870837bc
tree5909033ce66fa7f3ce108cb87e16fb1eadbf1da3
parenta4607d9f5cbae1aad7f86e8204b57d66c0e14e36
isp1704_charger: Detect charger after probe

If the device is booted up with cable connected, or the
module is loaded after plugging in the cable, the
notification has come and gone, so not relying on it at
probe time. Instead this checks the VBUS level manually
after probe.

Signed-off-by: Heikki Krogerus <heikki.krogerus@nokia.com>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
drivers/power/isp1704_charger.c