Searched hist:"5 a063d87" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/pwm/ |
H A D | sysfs.c | 5a063d87 Mon Jul 20 02:56:05 CDT 2015 Thierry Reding <thierry.reding@gmail.com> 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> 5a063d87 Mon Jul 20 02:56:05 CDT 2015 Thierry Reding <thierry.reding@gmail.com> 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>
|