summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/stm32-timers.c
diff options
context:
space:
mode:
authorFabrice Gasnier <fabrice.gasnier@st.com>2017-02-15 09:04:32 +0100
committerLee Jones <lee.jones@linaro.org>2017-04-27 09:25:03 +0100
commitae6816ba0f594edb194d108cfa0dedceb59fb0ff (patch)
treec98ec47fda680e2ff1f41a393b2831d5d531b791 /drivers/mfd/stm32-timers.c
parent118f6523793d99b3634455e9721836ea5e0592b9 (diff)
downloadlinux-ae6816ba0f594edb194d108cfa0dedceb59fb0ff.tar.bz2
mfd: stm32-timers: Fix max register
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>
Diffstat (limited to 'drivers/mfd/stm32-timers.c')
-rw-r--r--drivers/mfd/stm32-timers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/stm32-timers.c b/drivers/mfd/stm32-timers.c
index 192cbb60fb09..2182f00db101 100644
--- a/drivers/mfd/stm32-timers.c
+++ b/drivers/mfd/stm32-timers.c
@@ -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)