pm2301: LPN mode control support
authorLee Jones <lee.jones@linaro.org>
Wed, 23 Jan 2013 14:38:15 +0000 (14:38 +0000)
committerLee Jones <lee.jones@linaro.org>
Wed, 23 Jan 2013 14:39:19 +0000 (14:39 +0000)
commit3988043b0ee1104d4cca7c57bbc23b16ea798b6f
tree416daa30f175aa7bb2710919ea06753ae7260013
parente41f39ea2a0e9ba32d6896c2cc38bfec880a0937
pm2301: LPN mode control support

The AC charger plug-in detection while booting causes I2C read
failure if AC charger is not connected. Now the LPN pin is enabled
for every PM2301 register access, which solves the issue.

Signed-off-by: Rupesh Kumar <rupesh.kumar@stericsson.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Reviewed-by: Marcus COOPER <marcus.xm.cooper@stericsson.com>
Reviewed-by: Vijaya Kumar K-1 <vijay.kilari@stericsson.com>
Reviewed-by: Rabin VINCENT <rabin.vincent@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
Tested-by: Jonas ABERG <jonas.aberg@stericsson.com>
drivers/power/pm2301_charger.c
drivers/power/pm2301_charger.h
include/linux/pm2301_charger.h