diff options
author | NeilBrown <neil@brown.name> | 2015-07-30 10:11:24 +1000 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2015-08-05 05:18:06 +0200 |
commit | e4ae537e0482e99eeaa5373d39932fe65a477c21 (patch) | |
tree | c2614aea68397f9181e596916aa2f7d4b82e0f97 /sound/core/hwdep.c | |
parent | 1098cb58aed8eb4e06302d947a38bbfb69c8b4ba (diff) | |
download | linux-e4ae537e0482e99eeaa5373d39932fe65a477c21.tar.bz2 |
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 'sound/core/hwdep.c')
0 files changed, 0 insertions, 0 deletions