projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5999f85
)
regulator: rt4831: Add bypass mask to fix set_bypass API work
author
ChiYuan Huang
<cy_huang@richtek.com>
Fri, 25 Mar 2022 01:26:16 +0000
(09:26 +0800)
committer
Mark Brown
<broonie@kernel.org>
Fri, 25 Mar 2022 16:09:30 +0000
(16:09 +0000)
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>
drivers/regulator/rt4831-regulator.c
patch
|
blob
|
history
diff --git
a/drivers/regulator/rt4831-regulator.c
b/drivers/regulator/rt4831-regulator.c
index 676b0419e48f789a3e35d43feb6f57a804bc5d6a..8d24b5ff4e2c7efd9c41f22e00d2e6357dcedd82 100644
(file)
--- 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,