]> git.sur5r.net Git - u-boot/commit
mtd: stm32: use parameter instead of default value
authorPatrice Chotard <patrice.chotard@st.com>
Tue, 4 Jul 2017 16:24:43 +0000 (18:24 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 10 Jul 2017 18:26:05 +0000 (14:26 -0400)
commitc5c1756c68bd9ba6f6e72e642340c483b754bd8b
treeb8d1c5900c3126fd329c4c4aff4a04e7e5d9ca7e
parent9e58d4dbe361319bd964a760b4f6f0ddfc7b9e7f
mtd: stm32: use parameter instead of default value

To set wait state, a hard coded value is used instead of using
latency parameter. stm32_flash_latency_cfg() is currently used
in arch/arm/mach-stm32/stm32f4/clock.c and in
drivers/clk/clk_stm32f7.c with, in both case, "5" as parameter.

Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
drivers/mtd/stm32_flash.c