projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
184ae0e
)
regulator: rt4831: Add active_discharge_on to fix discharge API
author
ChiYuan Huang
<cy_huang@richtek.com>
Fri, 25 Mar 2022 01:26:17 +0000
(09:26 +0800)
committer
Mark Brown
<broonie@kernel.org>
Fri, 25 Mar 2022 16:09:31 +0000
(16:09 +0000)
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>
drivers/regulator/rt4831-regulator.c
patch
|
blob
|
history
diff --git
a/drivers/regulator/rt4831-regulator.c
b/drivers/regulator/rt4831-regulator.c
index
8d24b5f
..
2016062
100644
(file)
--- 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,
}
};