Skip to content
Commit 5a063d87 authored by Thierry Reding's avatar Thierry Reding
Browse files

pwm: sysfs: Properly convert from enum to string



The current code will check for polarity in a boolean way. While it is
correct that polarity is either normal or inversed, make it more obvious
that it's an enumeration by using a switch statement and explicit
matches on the enumeration values.

Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
parent 15da7b50
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment