Andy Shevchenko 36131ce9a0 PCI/ASPM: Convert to use sysfs_match_string() helper
The sysfs_match_string() helper returns index of the matching string in an
array.  Use it in pcie_aspm_set_policy() to simplify the code.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
[bhelgaas: squash sysfs_match_string() fix into original patch for issue
Reported-by: Heiner Kallweit <hkallweit1@gmail.com>]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
2018-08-06 14:30:34 -05:00
..
2018-06-06 16:10:10 -05:00
2018-04-04 13:28:40 -05:00
2018-05-10 17:56:02 -05:00
2018-05-09 06:57:18 +02:00
2018-03-19 14:20:43 -05:00
2018-01-18 12:55:24 -06:00
2018-03-19 14:20:43 -05:00
2018-06-12 16:19:22 -07:00
2018-06-04 12:08:06 -05:00
2018-06-07 12:45:58 -07:00
2018-03-19 14:20:43 -05:00
2018-03-19 14:20:43 -05:00
2018-06-12 16:19:22 -07:00
2018-06-07 12:45:58 -07:00
2018-06-06 16:10:27 -05:00
2018-06-06 16:10:18 -05:00
2018-05-16 07:23:35 +02:00
2018-06-06 16:10:51 -05:00
2018-03-19 14:20:43 -05:00
2018-03-19 14:20:43 -05:00
2018-03-19 14:20:43 -05:00
2018-04-04 13:27:45 -05:00
2018-03-19 14:20:43 -05:00
2018-02-01 11:40:07 -06:00
2018-04-06 18:31:06 -07:00
2018-03-19 14:20:43 -05:00