projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
682d33c
)
regulator: tps65132: Fix off-by-one for .max_register setting
author
Axel Lin
<axel.lin@ingics.com>
Thu, 13 Apr 2017 12:55:50 +0000
(20:55 +0800)
committer
Mark Brown
<broonie@kernel.org>
Thu, 13 Apr 2017 18:06:47 +0000
(19:06 +0100)
TPS65132_REG_CONTROL(0xFF) is the latest valid register.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/tps65132-regulator.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/regulator/tps65132-regulator.c
b/drivers/regulator/tps65132-regulator.c
index a949206065d4520cefc366cf074b7b40142c8e11..a2fc7322f434e00ca7a8cafdd073aede4ab4ec03 100644
(file)
--- a/
drivers/regulator/tps65132-regulator.c
+++ b/
drivers/regulator/tps65132-regulator.c
@@
-214,7
+214,7
@@
static const struct regmap_access_table tps65132_no_reg_table = {
static const struct regmap_config tps65132_regmap_config = {
.reg_bits = 8,
.val_bits = 8,
- .max_register = TPS65132_REG_CONTROL
+ 1
,
+ .max_register = TPS65132_REG_CONTROL,
.cache_type = REGCACHE_NONE,
.rd_table = &tps65132_no_reg_table,
.wr_table = &tps65132_no_reg_table,