Re: [PATCHv12 1/3] lib/string: add sysfs_match_string helper

2016-11-23 Thread Guenter Roeck
On Tue, Nov 22, 2016 at 04:11:45PM +0200, Heikki Krogerus wrote: > 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

Re: [PATCHv12 1/3] lib/string: add sysfs_match_string helper

2016-11-23 Thread Guenter Roeck
On Tue, Nov 22, 2016 at 04:11:45PM +0200, Heikki Krogerus wrote: > 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

[PATCHv12 1/3] lib/string: add sysfs_match_string helper

2016-11-22 Thread Heikki Krogerus
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 --- include/lin