Skip to content
Commit 8e536225 authored by Thierry Reding's avatar Thierry Reding
Browse files

pwm: stm32: Remove clutter from ternary operator



Remove usage of the ternary operator to assign values for register
fields. Instead, parameterize the register and field offset macros
and pass the index to them.

This removes clutter and improves readability.

Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
parent 8dfa620e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment