From: Fabrice Gasnier Date: Wed, 15 Feb 2017 08:04:32 +0000 (+0100) Subject: mfd: stm32-timers: Fix max register X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ae6816ba0f594edb194d108cfa0dedceb59fb0ff;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git mfd: stm32-timers: Fix max register STM32 timers register bank size is 0x400. Fix regmap max_register. Signed-off-by: Fabrice Gasnier Acked-by: Benjamin Gaignard Signed-off-by: Lee Jones --- 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)