mfd: as3711: 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). as3711 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 <mail@maciej.szmigiero.name> Signed-off-by: Lee Jones <lee.jones@linaro.org>
This commit is contained in:
parent
a862dc3ea7
commit
e9b7ba7954
2 changed files with 4 additions and 3 deletions
|
|
@ -51,7 +51,8 @@
|
|||
#define AS3711_ASIC_ID_1 0x90
|
||||
#define AS3711_ASIC_ID_2 0x91
|
||||
|
||||
#define AS3711_MAX_REGS 0x92
|
||||
#define AS3711_MAX_REG AS3711_ASIC_ID_2
|
||||
#define AS3711_NUM_REGS (AS3711_MAX_REG + 1)
|
||||
|
||||
/* Regulators */
|
||||
enum {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue