i2c: stm32f7_i2c: fix data abort
authorChristophe Kerello <christophe.kerello@st.com>
Tue, 17 Oct 2017 09:21:32 +0000 (11:21 +0200)
committerHeiko Schocher <hs@denx.de>
Tue, 17 Oct 2017 09:28:27 +0000 (11:28 +0200)
commit81c484376353251ba13b7ea987a15a896b3d106a
tree6200955aadb8e05b72c4fa97b7e768c2c73b95d8
parentc4e5990ad20e9d387dd0f1e6649c7676b869bc0d
i2c: stm32f7_i2c: fix data abort

As "v" is a local variable in stm32_i2c_choose_solution()
"v" has to be copied into "s" to avoid data abort in
stm32_i2c_compute_timing().

Signed-off-by: Christophe Kerello <christophe.kerello@st.com>
Reviewed-by: Patrick DELAUNAY <patrick.delaunay@st.com>
Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
drivers/i2c/stm32f7_i2c.c