mfd: stm32-timers: Fix max register
authorFabrice Gasnier <fabrice.gasnier@st.com>
Wed, 15 Feb 2017 08:04:32 +0000 (09:04 +0100)
committerLee Jones <lee.jones@linaro.org>
Thu, 27 Apr 2017 08:25:03 +0000 (09:25 +0100)
STM32 timers register bank size is 0x400. Fix regmap max_register.

Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
Acked-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/stm32-timers.c

index 192cbb60fb094ad923fdcb4ab3ebfa5edb399246..2182f00db101fd1144d8a7f9a9d80318827e6f7c 100644 (file)
@@ -15,7 +15,7 @@ static const struct regmap_config stm32_timers_regmap_cfg = {
        .reg_bits = 32,
        .val_bits = 32,
        .reg_stride = sizeof(u32),
-       .max_register = 0x400,
+       .max_register = 0x3fc,
 };
 
 static void stm32_timers_get_arr_size(struct stm32_timers *ddata)