]> git.karo-electronics.de Git - karo-tx-linux.git/commit
lib/string: add sysfs_match_string helper
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Tue, 21 Mar 2017 11:56:46 +0000 (13:56 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Mar 2017 12:48:44 +0000 (13:48 +0100)
commite1fe7b6a7b376bfb54558725ddb2a89aaaa4adcc
tree2f0f4a94cdb3c915aeb1fdbb60c1753868107743
parent8b373ffc797713337f42f0e58d832d5cae86752c
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>
include/linux/string.h
lib/string.c