]> git.baikalelectronics.ru Git - kernel.git/commit
PCI/ASPM: Convert to use sysfs_match_string() helper
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 6 Aug 2018 19:30:34 +0000 (14:30 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 6 Aug 2018 19:30:34 +0000 (14:30 -0500)
commita65aaf6060e8f2393485d12a70bf592ffe86a98f
tree8ccec8940b8359e955f05a2284acafdb11e6725c
parent0d5624e606504772b89d3c3d6b1be740ef176c61
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>
drivers/pci/pcie/aspm.c