Thierry Reding
5a063d87e9
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>
2015-07-27 12:03:37 +02:00
..
2015-07-20 09:46:06 +02:00
2015-01-30 12:16:04 +01:00
2015-01-30 12:16:04 +01:00
2014-10-20 16:21:28 +02:00
2015-03-11 11:59:54 +01:00
2015-07-20 09:46:06 +02:00
2015-07-20 09:53:22 +02:00
2014-11-17 12:20:13 +01:00
2015-07-20 09:53:22 +02:00
2014-10-20 16:21:28 +02:00
2014-10-20 16:21:28 +02:00
2015-07-20 09:46:06 +02:00
2014-12-01 10:48:54 +01:00
2015-05-19 16:07:40 +02:00
2015-07-20 09:53:22 +02:00
2014-10-20 16:21:28 +02:00
2014-10-20 16:21:28 +02:00
2014-10-20 16:21:28 +02:00
2015-06-12 12:46:50 +02:00
2014-08-23 00:25:47 +02:00
2014-08-25 11:45:34 +02:00
2014-08-23 00:25:47 +02:00
2015-07-20 09:46:06 +02:00
2015-03-11 10:25:13 +01:00
2014-10-20 16:21:28 +02:00
2014-10-20 16:21:28 +02:00
2015-07-20 09:46:06 +02:00
2015-07-20 09:53:22 +02:00
2015-05-21 15:56:53 +02:00
2014-10-20 16:21:28 +02:00
2015-01-30 12:16:03 +01:00
2015-01-30 12:16:01 +01:00
2015-07-20 09:46:06 +02:00
2015-07-20 09:46:06 +02:00
2015-07-20 09:46:06 +02:00
2014-10-20 16:21:28 +02:00
2013-03-22 11:35:20 +01:00
2013-10-08 15:45:44 +02:00
2014-05-08 23:41:47 +02:00
2014-10-20 16:21:28 +02:00
2015-07-27 12:03:37 +02:00