summaryrefslogtreecommitdiffstats
path: root/drivers/power/max14577_charger.c
diff options
context:
space:
mode:
authorKrzysztof Kozlowski2014-09-12 08:53:56 +0200
committerLee Jones2014-09-24 16:25:47 +0200
commitb8f139f68f2099b7f8b4ef470a1e53210e3aa025 (patch)
tree416abf92550a7a84f074622a535eee2645b33b09 /drivers/power/max14577_charger.c
parentcharger: max14577: Add support for MAX77836 charger (diff)
downloadkernel-qcow2-linux-b8f139f68f2099b7f8b4ef470a1e53210e3aa025.tar.gz
kernel-qcow2-linux-b8f139f68f2099b7f8b4ef470a1e53210e3aa025.tar.xz
kernel-qcow2-linux-b8f139f68f2099b7f8b4ef470a1e53210e3aa025.zip
regulator/mfd: max14577: Export symbols for calculating charger current
This patch prepares for changing the max14577 charger driver to allow configuring battery-dependent settings from DTS. The patch moves from regulator driver to MFD core driver and exports: - function for calculating register value for charger's current; - table of limits for chargers (MAX14577, MAX77836). Previously they were used only by the max14577 regulator driver. In next patch the charger driver will use them as well. Exporting them will reduce unnecessary code duplication. Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> Acked-by: Mark Brown <broonie@linaro.org> Acked-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/power/max14577_charger.c')
0 files changed, 0 insertions, 0 deletions