diff options
author | ChiYuan Huang <cy_huang@richtek.com> | 2022-03-25 09:26:16 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-03-25 16:09:30 +0000 |
commit | 184ae0e32bc990bba203b60503df89c9f8865f13 (patch) | |
tree | 5e6525b4c0bb69f9576b93de4b626348cc073c07 | |
parent | 5999f85ddeb436b4007878f251a30ccc8b9c638b (diff) | |
download | linux-184ae0e32bc990bba203b60503df89c9f8865f13.tar.bz2 |
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>
-rw-r--r-- | drivers/regulator/rt4831-regulator.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/regulator/rt4831-regulator.c b/drivers/regulator/rt4831-regulator.c index 676b0419e48f..8d24b5ff4e2c 100644 --- a/drivers/regulator/rt4831-regulator.c +++ b/drivers/regulator/rt4831-regulator.c @@ -106,6 +106,7 @@ static const struct regulator_desc rt4831_regulator_descs[] = { .vsel_reg = RT4831_REG_VLCM, .vsel_mask = RT4831_VOLT_MASK, .bypass_reg = RT4831_REG_DSVEN, + .bypass_mask = RT4831_DSVMODE_MASK, .bypass_val_on = DSV_MODE_BYPASS, .bypass_val_off = DSV_MODE_NORMAL, .owner = THIS_MODULE, |