Skip to content

Commit 184ae0e

Browse files
ChiYuan Huangbroonie
authored andcommitted
regulator: rt4831: Add bypass mask to fix set_bypass API work
To use set/get_bypass helper function, bypass mask need to be specified. Signed-off-by: ChiYuan Huang <cy_huang@richtek.com> Link: https://lore.kernel.org/r/1648171577-9663-2-git-send-email-u0084500@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 5999f85 commit 184ae0e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/regulator/rt4831-regulator.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ static const struct regulator_desc rt4831_regulator_descs[] = {
106106
.vsel_reg = RT4831_REG_VLCM,
107107
.vsel_mask = RT4831_VOLT_MASK,
108108
.bypass_reg = RT4831_REG_DSVEN,
109+
.bypass_mask = RT4831_DSVMODE_MASK,
109110
.bypass_val_on = DSV_MODE_BYPASS,
110111
.bypass_val_off = DSV_MODE_NORMAL,
111112
.owner = THIS_MODULE,

0 commit comments

Comments
 (0)