Skip to content
Commit a9ed11ab authored by Patryk Duda's avatar Patryk Duda Committed by Fabio Baltieri
Browse files

drivers: counter: Add __fallthrough in STM32 counter driver



STM32 counter driver uses switch statement in which cases don't end
with break or return intentionally.

Affected switches in counter driver check status of all timer channels
(maximum 4 channels), but the number of channels is not determined
during compilation. In switch, we jump to channel with highest number
and then check other channels with lower numbers.

Compiler can warn about it, so this patch adds information that it was
intentional.

Signed-off-by: default avatarPatryk Duda <pdk@semihalf.com>
parent a0535439
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment