'host mode charging' patch for smb347-charger.c

patch based on mehrvarz's patch for Nexus N7

Also refactored the if/else statement with switch/case for better
readability

Signed-off-by: faux123 <reioux@gmail.com>

Conflicts:

	drivers/power/smb347-charger.c