Power: Merge the power driver from CM OPO kernel

People were having charging issues (percentage not updating while charging charging indicator light not shutting off after unplugging) this merge fixes them 

Change-Id: I269e621c55213d03489dbeb3cd5dee012174aa0f