Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mfd: stm32-timers: fix max register
@ 2017-02-15  8:04 Fabrice Gasnier
  2017-02-15 10:37 ` Benjamin Gaignard
  2017-03-14 14:00 ` Lee Jones
  0 siblings, 2 replies; 3+ messages in thread
From: Fabrice Gasnier @ 2017-02-15  8:04 UTC (permalink / raw)
  To: linux-arm-kernel

STM32 timers register bank size is 0x400. Fix regmap max_register.

Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
---
 drivers/mfd/stm32-timers.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mfd/stm32-timers.c b/drivers/mfd/stm32-timers.c
index 192cbb6..2182f00 100644
--- a/drivers/mfd/stm32-timers.c
+++ b/drivers/mfd/stm32-timers.c
@@ -15,7 +15,7 @@
 	.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)
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-03-14 14:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-15  8:04 [PATCH] mfd: stm32-timers: fix max register Fabrice Gasnier
2017-02-15 10:37 ` Benjamin Gaignard
2017-03-14 14:00 ` Lee Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox