projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8908217
)
regulator: rtmv20: Fix to make regcache value first reading back from HW
author
ChiYuan Huang
<cy_huang@richtek.com>
Tue, 1 Jun 2021 10:09:15 +0000
(18:09 +0800)
committer
Mark Brown
<broonie@kernel.org>
Tue, 1 Jun 2021 13:03:05 +0000
(14:03 +0100)
- Fix to make regcache value first reading back from HW.
Signed-off-by: ChiYuan Huang <cy_huang@richtek.com>
Link:
https://lore.kernel.org/r/1622542155-6373-1-git-send-email-u0084500@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/rtmv20-regulator.c
patch
|
blob
|
history
diff --git
a/drivers/regulator/rtmv20-regulator.c
b/drivers/regulator/rtmv20-regulator.c
index 5adc552dffd58bb4fbc18eecbb164812d414fa78..4bca64de0f672d0f7e4ed5b722379a2182985b3d 100644
(file)
--- a/
drivers/regulator/rtmv20-regulator.c
+++ b/
drivers/regulator/rtmv20-regulator.c
@@
-27,6
+27,7
@@
#define RTMV20_REG_LDIRQ 0x30
#define RTMV20_REG_LDSTAT 0x40
#define RTMV20_REG_LDMASK 0x50
+#define RTMV20_MAX_REGS (RTMV20_REG_LDMASK + 1)
#define RTMV20_VID_MASK GENMASK(7, 4)
#define RICHTEK_VID 0x80
@@
-313,6
+314,7
@@
static const struct regmap_config rtmv20_regmap_config = {
.val_bits = 8,
.cache_type = REGCACHE_RBTREE,
.max_register = RTMV20_REG_LDMASK,
+ .num_reg_defaults_raw = RTMV20_MAX_REGS,
.writeable_reg = rtmv20_is_accessible_reg,
.readable_reg = rtmv20_is_accessible_reg,