mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
mfd: rc5t583: Set regmap config reg counts properly
Regmap config max_register field should contain number of device last register, however num_reg_defaults_raw field should be set to register count instead (usually one register more than max_register). rc5t583 driver had both of these fields set to the same value, fix this by introducing separate defines for max register number and total count of registers. Signed-off-by: Maciej S. Szmigiero <[email protected]> Signed-off-by: Lee Jones <[email protected]>
This commit is contained in:
parent
99f0fd540f
commit
a862dc3ea7
2 changed files with 5 additions and 4 deletions
|
|
@ -241,8 +241,8 @@ static const struct regmap_config rc5t583_regmap_config = {
|
|||
.reg_bits = 8,
|
||||
.val_bits = 8,
|
||||
.volatile_reg = volatile_reg,
|
||||
.max_register = RC5T583_MAX_REGS,
|
||||
.num_reg_defaults_raw = RC5T583_MAX_REGS,
|
||||
.max_register = RC5T583_MAX_REG,
|
||||
.num_reg_defaults_raw = RC5T583_NUM_REGS,
|
||||
.cache_type = REGCACHE_RBTREE,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue