USB: twl4030-usb: Report correct vbus value for accessory charger adapters1
authorMatthias Kaehlcke <matthias.kaehlcke@tomtom.com>
Fri, 1 Apr 2011 21:02:07 +0000 (23:02 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 13 Apr 2011 23:48:17 +0000 (16:48 -0700)
commita87103a6d4a91cbb9be49d3bbd2f35dcf5510da1
treed80a2847cbcea1600d9e2dc636b19e8e9f51fbb3
parent0b0cd6c81defc4e4fccb9e9103666547fefdb9c0
USB: twl4030-usb: Report correct vbus value for accessory charger adapters1

The twl4030-usb driver exports the status of VBUS as sysfs attribute.
In case an accessory charger adapter (ACA) is connected to the OTG
transceiver the attribute is always 'off', even when the charger
provides VBUS. Added a variable to keep track of the status of VBUS
and report it correctly

Signed-off-by: Matthias Kaehlcke <matthias.kaehlcke@tomtom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/otg/twl4030-usb.c