aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator/wm8994-regulator.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2012-06-27 09:29:27 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-07-03 15:29:24 -0400
commit00581b30ae75ea0813207803e2b1d3f9abc55b9a (patch)
tree09c890256c2e746db18e1ed7a0769d892fd3e5a3 /drivers/regulator/wm8994-regulator.c
parent3d0f267fcd9197d72551baf60165b40a00dfb66a (diff)
regulator: wm8994: Set enable_time in descriptor
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/regulator/wm8994-regulator.c')
-rw-r--r--drivers/regulator/wm8994-regulator.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/drivers/regulator/wm8994-regulator.c b/drivers/regulator/wm8994-regulator.c
index 0e2028b74d1a..a056cee7ed46 100644
--- a/drivers/regulator/wm8994-regulator.c
+++ b/drivers/regulator/wm8994-regulator.c
@@ -70,18 +70,10 @@ static int wm8994_ldo_is_enabled(struct regulator_dev *rdev)
70 return ldo->is_enabled; 70 return ldo->is_enabled;
71} 71}
72 72
73static int wm8994_ldo_enable_time(struct regulator_dev *rdev)
74{
75 /* 3ms is fairly conservative but this shouldn't be too performance
76 * critical; can be tweaked per-system if required. */
77 return 3000;
78}
79
80static struct regulator_ops wm8994_ldo1_ops = { 73static struct regulator_ops wm8994_ldo1_ops = {
81 .enable = wm8994_ldo_enable, 74 .enable = wm8994_ldo_enable,
82 .disable = wm8994_ldo_disable, 75 .disable = wm8994_ldo_disable,
83 .is_enabled = wm8994_ldo_is_enabled, 76 .is_enabled = wm8994_ldo_is_enabled,
84 .enable_time = wm8994_ldo_enable_time,
85 77
86 .list_voltage = regulator_list_voltage_linear, 78 .list_voltage = regulator_list_voltage_linear,
87 .map_voltage = regulator_map_voltage_linear, 79 .map_voltage = regulator_map_voltage_linear,
@@ -119,7 +111,6 @@ static struct regulator_ops wm8994_ldo2_ops = {
119 .enable = wm8994_ldo_enable, 111 .enable = wm8994_ldo_enable,
120 .disable = wm8994_ldo_disable, 112 .disable = wm8994_ldo_disable,
121 .is_enabled = wm8994_ldo_is_enabled, 113 .is_enabled = wm8994_ldo_is_enabled,
122 .enable_time = wm8994_ldo_enable_time,
123 114
124 .list_voltage = wm8994_ldo2_list_voltage, 115 .list_voltage = wm8994_ldo2_list_voltage,
125 .get_voltage_sel = regulator_get_voltage_sel_regmap, 116 .get_voltage_sel = regulator_get_voltage_sel_regmap,
@@ -137,6 +128,7 @@ static const struct regulator_desc wm8994_ldo_desc[] = {
137 .ops = &wm8994_ldo1_ops, 128 .ops = &wm8994_ldo1_ops,
138 .min_uV = 2400000, 129 .min_uV = 2400000,
139 .uV_step = 100000, 130 .uV_step = 100000,
131 .enable_time = 3000,
140 .owner = THIS_MODULE, 132 .owner = THIS_MODULE,
141 }, 133 },
142 { 134 {
@@ -147,6 +139,7 @@ static const struct regulator_desc wm8994_ldo_desc[] = {
147 .vsel_reg = WM8994_LDO_2, 139 .vsel_reg = WM8994_LDO_2,
148 .vsel_mask = WM8994_LDO2_VSEL_MASK, 140 .vsel_mask = WM8994_LDO2_VSEL_MASK,
149 .ops = &wm8994_ldo2_ops, 141 .ops = &wm8994_ldo2_ops,
142 .enable_time = 3000,
150 .owner = THIS_MODULE, 143 .owner = THIS_MODULE,
151 }, 144 },
152}; 145};