diff options
author | ChiYuan Huang <cy_huang@richtek.com> | 2022-03-25 04:26:17 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-03-25 19:09:31 +0300 |
commit | aefe5fc3000a24869edbf7bb657adf28372ec158 (patch) | |
tree | 8de3636d5eb4941178f64ddb56a6229c069724db /drivers/regulator/rt4831-regulator.c | |
parent | 184ae0e32bc990bba203b60503df89c9f8865f13 (diff) | |
download | linux-aefe5fc3000a24869edbf7bb657adf28372ec158.tar.xz |
regulator: rt4831: Add active_discharge_on to fix discharge API
To use set_discharge helper function, active_discharge_on need to be
added.
Signed-off-by: ChiYuan Huang <cy_huang@richtek.com>
Link: https://lore.kernel.org/r/1648171577-9663-3-git-send-email-u0084500@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/rt4831-regulator.c')
-rw-r--r-- | drivers/regulator/rt4831-regulator.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/regulator/rt4831-regulator.c b/drivers/regulator/rt4831-regulator.c index 8d24b5ff4e2c..2016062cd7ef 100644 --- a/drivers/regulator/rt4831-regulator.c +++ b/drivers/regulator/rt4831-regulator.c @@ -127,6 +127,7 @@ static const struct regulator_desc rt4831_regulator_descs[] = { .enable_mask = RT4831_POSEN_MASK, .active_discharge_reg = RT4831_REG_DSVEN, .active_discharge_mask = RT4831_POSADEN_MASK, + .active_discharge_on = RT4831_POSADEN_MASK, .owner = THIS_MODULE, }, { @@ -145,6 +146,7 @@ static const struct regulator_desc rt4831_regulator_descs[] = { .enable_mask = RT4831_NEGEN_MASK, .active_discharge_reg = RT4831_REG_DSVEN, .active_discharge_mask = RT4831_NEGADEN_MASK, + .active_discharge_on = RT4831_NEGADEN_MASK, .owner = THIS_MODULE, } }; |