summaryrefslogtreecommitdiffstats
path: root/drivers/power/max17040_battery.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:15:25 +0200
commit1098cb58aed8eb4e06302d947a38bbfb69c8b4ba (patch)
tree608d82f41ee74396b9689c665b195974e03ad262 /drivers/power/max17040_battery.c
parent3b542f089dcbdcf1c21a01927fbc6d5116af01f6 (diff)
downloadlinux-1098cb58aed8eb4e06302d947a38bbfb69c8b4ba.tar.bz2
twl4030_charger: allow fine control of charger current.
The twl4030 allows control of the incoming current. Part of this control is a 'CGAIN' setting which doubles the range for half the precision. This control affects several different current setting, so all need to be updated at once when CGAIN is changed. With this patch, all of these current setting are managed by the driver, but most are left at their default settings. The current drawn is set to 500mA if the allow_usb module parameter is set, and to 100mA otherwise. More fine control will appear in later patches. 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/max17040_battery.c')
0 files changed, 0 insertions, 0 deletions