regulator: axp20x: Prepare support for multiple AXP chip families
authorBoris BREZILLON <boris.brezillon@free-electrons.com>
Fri, 10 Apr 2015 04:09:03 +0000 (12:09 +0800)
committerLee Jones <lee.jones@linaro.org>
Wed, 13 May 2015 15:26:04 +0000 (16:26 +0100)
commit866bd951f2205ce36ebf2dd6f88c2ecd3ce245a8
treef61eacb5a4d89cb4d1366ffdff5bebb216cc98b7
parent768a87c8e12e17b44ab2163be70739ec5889f06f
regulator: axp20x: Prepare support for multiple AXP chip families

Rework the AXP20X_ macros and probe function to support the several chip
families, so that each family can define it's own set of regulators.

Signed-off-by: Boris BREZILLON <boris.brezillon@free-electrons.com>
[wens@csie.org: Support different DC-DC work frequency ranges]
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Reviewed-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/regulator/axp20x-regulator.c