Skip to content
Commit 36131ce9 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Bjorn Helgaas
Browse files

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: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
[bhelgaas: squash sysfs_match_string() fix into original patch for issue
Reported-by: default avatarHeiner Kallweit <hkallweit1@gmail.com&gt;]>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
parent ce397d21
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment