summaryrefslogtreecommitdiff
path: root/include/linux/regulator/ab8500.h
diff options
context:
space:
mode:
authorBengt Jonsson <bengt.g.jonsson@stericsson.com>2013-03-21 15:59:03 +0000
committerMark Brown <broonie@opensource.wolfsonmicro.com>2013-03-22 12:03:17 +0100
commit732805a563617aafc7405409c03182afafb3943b (patch)
tree8ecd2fefdef5f6802f8a28b60dfb93f26f0473a7 /include/linux/regulator/ab8500.h
parent33bc8f46a8ee3fc1836def9713933435b7ff0b90 (diff)
regulator: ab8500: Separate regulator and MFD platform data
The ab8500 MFD should not have knowledge about regulator- specific platform data like number of regulators and regulator registers. As the regulator platform data is about to grow with external regulators, this information is moved to a new structure provided by the regulator driver. Signed-off-by: Bengt Jonsson <bengt.g.jonsson@stericsson.com> Signed-off-by: Lee Jones <lee.jones@linaro.org> Reviewed-by: Yvan FILLION <yvan.fillion@stericsson.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include/linux/regulator/ab8500.h')
-rw-r--r--include/linux/regulator/ab8500.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/regulator/ab8500.h b/include/linux/regulator/ab8500.h
index dd7944f735d8..3a8e02687f7b 100644
--- a/include/linux/regulator/ab8500.h
+++ b/include/linux/regulator/ab8500.h
@@ -152,4 +152,11 @@ enum ab9540_regulator_reg {
AB9540_NUM_REGULATOR_REGISTERS,
};
+struct ab8500_regulator_platform_data {
+ int num_reg_init;
+ struct ab8500_regulator_reg_init *reg_init;
+ int num_regulator;
+ struct regulator_init_data *regulator;
+};
+
#endif