David Brownell 34990cf702 Add a new sysfs_streq() string comparison function
Add a new sysfs_streq() string comparison function, which ignores
the trailing newlines found in sysfs inputs.  By example:

	sysfs_streq("a", "b")	==> false
	sysfs_streq("a", "a")	==> true
	sysfs_streq("a", "a\n")	==> true
	sysfs_streq("a\n", "a")	==> true

This is intended to simplify parsing of sysfs inputs, letting them
avoid the need to manually strip off newlines from inputs.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Acked-by: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-05-01 08:03:59 -07:00
..
2008-04-23 23:00:13 -04:00
2008-05-01 08:03:58 -07:00
2008-05-01 08:03:58 -07:00
2008-05-01 08:03:58 -07:00
2008-05-01 08:03:58 -07:00
2008-05-01 08:03:58 -07:00
2008-05-01 08:03:58 -07:00
2008-05-01 08:03:58 -07:00
2008-04-29 08:06:12 -07:00
2008-04-24 23:57:33 +02:00