Skip to content
Commit b31251b4 authored by Abderrahmane JARMOUNI's avatar Abderrahmane JARMOUNI Committed by Benjamin Cabé
Browse files

drivers: stm32: i2c rtio: Fix 'timings' array size



'timings' is an array of 'struct i2c_config_timing' (3 x uint32_t).
'i2c_timings_##index' is an array of uint32_t (hence the cast when it
is assigned to 'timings'). Therefore 'ARRAY_SIZE(i2c_timings_##index)' is
off by a factor 3 when used for n_timings.

Signed-off-by: default avatarAbderrahmane JARMOUNI <git@jarmouni.me>
parent d17956a0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment