Skip to content

Commit

Permalink
regulator: rt4831: Add active_discharge_on to fix discharge API
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
ChiYuan Huang authored and Mark Brown committed Mar 25, 2022
1 parent 184ae0e commit aefe5fc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/regulator/rt4831-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
{
Expand All @@ -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,
}
};
Expand Down

0 comments on commit aefe5fc

Please sign in to comment.