Skip to content
Commit e0fbd35f authored by Michał Barnaś's avatar Michał Barnaś Committed by Carles Cufí
Browse files

usbc: explicitly declare sizes of state machines arrays



The asserts in the USB-C stack functions were causing compilation
errors when asserts were enabled in Kconfig.
This was caused because the asserts checked if the functions
parameters were within limits specified by the state machine arrays.
At the position of these asserts, these arrays were only declared
without specifying the size of them, what prohibited the asserts from
knowing the size of arrays and checking if specified value is within
limit of it.

Signed-off-by: default avatarMichał Barnaś <mb@semihalf.com>
parent 1be74ac6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment