File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 36
36
#define MP8859_GO_BIT 0x01
37
37
38
38
#define MP8859_ENABLE_MASK 0x80
39
+ #define MP8859_DISCHG_EN_MASK 0x10
39
40
#define MP8859_MODE_MASK 0x08
40
41
41
42
static int mp8859_set_voltage_sel (struct regulator_dev * rdev , unsigned int sel )
@@ -167,6 +168,7 @@ static const struct regulator_ops mp8859_ops = {
167
168
.is_enabled = regulator_is_enabled_regmap ,
168
169
.set_mode = mp8859_set_mode ,
169
170
.get_mode = mp8859_get_mode ,
171
+ .set_active_discharge = regulator_set_active_discharge_regmap ,
170
172
};
171
173
172
174
static const struct regulator_desc mp8859_regulators [] = {
@@ -182,6 +184,9 @@ static const struct regulator_desc mp8859_regulators[] = {
182
184
.enable_reg = MP8859_CTL1_REG ,
183
185
.enable_mask = MP8859_ENABLE_MASK ,
184
186
.enable_val = MP8859_ENABLE_MASK ,
187
+ .active_discharge_reg = MP8859_CTL1_REG ,
188
+ .active_discharge_on = MP8859_DISCHG_EN_MASK ,
189
+ .active_discharge_mask = MP8859_DISCHG_EN_MASK ,
185
190
.ops = & mp8859_ops ,
186
191
.owner = THIS_MODULE ,
187
192
},
You can’t perform that action at this time.
0 commit comments