diff options
author | Thierry Reding <thierry.reding@gmail.com> | 2015-07-20 09:56:05 +0200 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2015-07-27 12:03:37 +0200 |
commit | 5a063d87e97df28ca0b00807bc4d6fa11c5a5107 (patch) | |
tree | 17b7cec307e98f14d1c943ee0de230454666af0c /CREDITS | |
parent | pwm: Make use of pwm_get_xxx() helpers where appropriate (diff) | |
download | linux-5a063d87e97df28ca0b00807bc4d6fa11c5a5107.tar.xz linux-5a063d87e97df28ca0b00807bc4d6fa11c5a5107.zip |
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 <thierry.reding@gmail.com>
Diffstat (limited to 'CREDITS')
0 files changed, 0 insertions, 0 deletions