smb347_charger: Disable OTG during shutdown(Rebased from R3-main to R3-stable).
authormadhu <madhukumarx.kallappa.manjanna@intel.com>
Mon, 4 Jun 2012 16:51:06 +0000 (22:21 +0530)
committerbuildbot <buildbot@intel.com>
Tue, 5 Jun 2012 07:08:18 +0000 (00:08 -0700)
commit4cb95d2c630e08d3c100884c8e0af7654361a671
tree992845e30b88838e86795c1aa80bf6d3509e0068
parent031a2dde3aba473dc05f18dd589520e8504024a6
smb347_charger: Disable OTG during shutdown(Rebased from R3-main to R3-stable).

BZ: 37067

Adding a .shutdown function, which disables the OTG.
This is required for the case where we shutdown and OTG is removed.
Unless OTG is disabled during shutdown, OTG-Enable bit in Command Register A
is not cleared in the next boot.

Change-Id: I9110659253d6650ced0cf85af3ff9ff1689b3dfe
Signed-off-by: madhu <madhukumarx.kallappa.manjanna@intel.com>
Reviewed-on: http://android.intel.com:8080/51150
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/power/smb347-charger.c