Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: Thierry Reding <[email protected]>
- Loading branch information