projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e565666
)
regulator: pfuze100: Fix off-by-one for max_register setting
author
Axel Lin
<axel.lin@ingics.com>
Thu, 1 Aug 2013 11:59:56 +0000
(19:59 +0800)
committer
Mark Brown
<broonie@linaro.org>
Fri, 2 Aug 2013 10:29:00 +0000
(11:29 +0100)
max_register should be register count - 1.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Reviewed-by: Robin Gong <b38343@freescale.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/pfuze100-regulator.c
patch
|
blob
|
history
diff --git
a/drivers/regulator/pfuze100-regulator.c
b/drivers/regulator/pfuze100-regulator.c
index bda55617092bc3c9bb974683d6526331e1adf104..ba67b2c4e2e7fe4da91fdd6afd269ab1233a284e 100644
(file)
--- a/
drivers/regulator/pfuze100-regulator.c
+++ b/
drivers/regulator/pfuze100-regulator.c
@@
-332,7
+332,7
@@
static int pfuze_identify(struct pfuze_chip *pfuze_chip)
static const struct regmap_config pfuze_regmap_config = {
.reg_bits = 8,
.val_bits = 8,
- .max_register = PFUZE_NUMREGS,
+ .max_register = PFUZE_NUMREGS
- 1
,
.cache_type = REGCACHE_RBTREE,
};