0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 #ifndef __LINUX_REGULATOR_LP3971_H
0012 #define __LINUX_REGULATOR_LP3971_H
0013
0014 #include <linux/regulator/machine.h>
0015
0016 #define LP3971_LDO1 0
0017 #define LP3971_LDO2 1
0018 #define LP3971_LDO3 2
0019 #define LP3971_LDO4 3
0020 #define LP3971_LDO5 4
0021
0022 #define LP3971_DCDC1 5
0023 #define LP3971_DCDC2 6
0024 #define LP3971_DCDC3 7
0025
0026 #define LP3971_NUM_REGULATORS 8
0027
0028 struct lp3971_regulator_subdev {
0029 int id;
0030 struct regulator_init_data *initdata;
0031 };
0032
0033 struct lp3971_platform_data {
0034 int num_regulators;
0035 struct lp3971_regulator_subdev *regulators;
0036 };
0037
0038 #endif