diff options
author | Heikki Krogerus <heikki.krogerus@linux.intel.com> | 2017-03-21 13:56:46 +0200 |
---|---|---|
committer | Leonard Crestez <leonard.crestez@nxp.com> | 2018-08-24 12:41:33 +0300 |
commit | 13d4df6d21063ac5c3c6c7472ca2b7a030c42d8a (patch) | |
tree | d3a266a30d174be306a46a722459381e268d5390 /Documentation/usb | |
parent | 1d4b521537572e1c2c03b12eed86abfd832330da (diff) |
lib/string: add sysfs_match_string helper
Make a simple helper for matching strings with sysfs
attribute files. In most parts the same as match_string(),
except sysfs_match_string() uses sysfs_streq() instead of
strcmp() for matching. This is more convenient when used
with sysfs attributes.
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit e1fe7b6a7b376bfb54558725ddb2a89aaaa4adcc)
Diffstat (limited to 'Documentation/usb')
0 files changed, 0 insertions, 0 deletions