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. BUG=chromium:622499 TEST=Build and Compile Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Tested-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Guenter Roeck <groeck@chromium.org> (am from https://patchwork.kernel.org/patch/9445395/) (cherry-pick from Chromium Ia324112f6468788e577aab5221f7f88f777bffe7) Bug: 33417679 Signed-off-by: Yueyao Zhu <yueyao@google.com> Change-Id: Iba236b0ce3dd4e3c1bd6808224c620fa8e14e5ee
5.1 KiB
5.1 KiB