diff options
author | Maciej S. Szmigiero <mail@maciej.szmigiero.name> | 2016-01-31 16:56:59 -0500 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2016-03-16 04:50:34 -0400 |
commit | e9b7ba7954fa8df6e021ee4bef084ed10eba2c2b (patch) | |
tree | 0cc8eac43c8c27c0dee11a95ae74828e5d5f4be6 /include/linux/mfd/as3711.h | |
parent | a862dc3ea793256a1364991f52e68198a2c5f27d (diff) |
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>
Diffstat (limited to 'include/linux/mfd/as3711.h')
-rw-r--r-- | include/linux/mfd/as3711.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/mfd/as3711.h b/include/linux/mfd/as3711.h index 38452ce1e892..34cc85864be5 100644 --- a/include/linux/mfd/as3711.h +++ b/include/linux/mfd/as3711.h | |||
@@ -51,7 +51,8 @@ | |||
51 | #define AS3711_ASIC_ID_1 0x90 | 51 | #define AS3711_ASIC_ID_1 0x90 |
52 | #define AS3711_ASIC_ID_2 0x91 | 52 | #define AS3711_ASIC_ID_2 0x91 |
53 | 53 | ||
54 | #define AS3711_MAX_REGS 0x92 | 54 | #define AS3711_MAX_REG AS3711_ASIC_ID_2 |
55 | #define AS3711_NUM_REGS (AS3711_MAX_REG + 1) | ||
55 | 56 | ||
56 | /* Regulators */ | 57 | /* Regulators */ |
57 | enum { | 58 | enum { |