File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 35
35
36
36
#define MP8859_GO_BIT 0x01
37
37
38
+ #define MP8859_ENABLE_MASK 0x80
38
39
39
40
static int mp8859_set_voltage_sel (struct regulator_dev * rdev , unsigned int sel )
40
41
{
@@ -124,6 +125,9 @@ static const struct regulator_ops mp8859_ops = {
124
125
.set_voltage_sel = mp8859_set_voltage_sel ,
125
126
.get_voltage_sel = mp8859_get_voltage_sel ,
126
127
.list_voltage = regulator_list_voltage_linear_range ,
128
+ .enable = regulator_enable_regmap ,
129
+ .disable = regulator_disable_regmap ,
130
+ .is_enabled = regulator_is_enabled_regmap ,
127
131
};
128
132
129
133
static const struct regulator_desc mp8859_regulators [] = {
@@ -136,6 +140,9 @@ static const struct regulator_desc mp8859_regulators[] = {
136
140
.n_voltages = VOL_MAX_IDX + 1 ,
137
141
.linear_ranges = mp8859_dcdc_ranges ,
138
142
.n_linear_ranges = 1 ,
143
+ .enable_reg = MP8859_CTL1_REG ,
144
+ .enable_mask = MP8859_ENABLE_MASK ,
145
+ .enable_val = MP8859_ENABLE_MASK ,
139
146
.ops = & mp8859_ops ,
140
147
.owner = THIS_MODULE ,
141
148
},
You can’t perform that action at this time.
0 commit comments