summaryrefslogtreecommitdiff
path: root/drivers/power/wm831x_power.c
diff options
context:
space:
mode:
authorNeilBrown <neil@brown.name>2015-07-30 10:11:24 +1000
committerSebastian Reichel <sre@kernel.org>2015-08-05 05:18:06 +0200
commite4ae537e0482e99eeaa5373d39932fe65a477c21 (patch)
treec2614aea68397f9181e596916aa2f7d4b82e0f97 /drivers/power/wm831x_power.c
parent1098cb58aed8eb4e06302d947a38bbfb69c8b4ba (diff)
twl4030_charger: distinguish between USB current and 'AC' current
The twl4030 charger has two current sources, 'USB' and 'AC' (presumably "Accessory Charger" because it isn't Alternating Current). If 'AC' is providing current, we should set the current limit differently to when it isn't (and so USB is used). So split 'cur' into 'usb_cur' and 'ac_cur' and use accordingly. Now we must review the current setting on any interrupt or USB event which might indicate that the charger-source has changed. Acked-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: NeilBrown <neil@brown.name> Signed-off-by: Sebastian Reichel <sre@kernel.org>
Diffstat (limited to 'drivers/power/wm831x_power.c')
0 files changed, 0 insertions, 0 deletions