OSDN Git Service

regulator/mfd: max14577: Export symbols for calculating charger current
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Fri, 12 Sep 2014 06:53:56 +0000 (08:53 +0200)
committerLee Jones <lee.jones@linaro.org>
Wed, 24 Sep 2014 14:25:47 +0000 (15:25 +0100)
commitb8f139f68f2099b7f8b4ef470a1e53210e3aa025
tree416abf92550a7a84f074622a535eee2645b33b09
parent3682a8ee87f9107253e51733f42da10160ce41e3
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>
drivers/mfd/max14577.c
drivers/regulator/max14577.c
include/linux/mfd/max14577-private.h
include/linux/mfd/max14577.h