summaryrefslogtreecommitdiffstats
path: root/drivers/oprofile
diff options
context:
space:
mode:
authorNeilBrown <neil@brown.name>2015-07-30 02:11:24 +0200
committerSebastian Reichel <sre@kernel.org>2015-08-05 05:18:06 +0200
commite4ae537e0482e99eeaa5373d39932fe65a477c21 (patch)
treec2614aea68397f9181e596916aa2f7d4b82e0f97 /drivers/oprofile
parenttwl4030_charger: allow fine control of charger current. (diff)
downloadlinux-e4ae537e0482e99eeaa5373d39932fe65a477c21.tar.xz
linux-e4ae537e0482e99eeaa5373d39932fe65a477c21.zip
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/oprofile')
0 files changed, 0 insertions, 0 deletions