]> git.baikalelectronics.ru Git - kernel.git/commit
sysfs: Add sysfs_add/remove_files utility functions
authorAndi Kleen <andi@firstfloor.org>
Tue, 5 Jan 2010 11:48:01 +0000 (12:48 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 8 Mar 2010 01:04:47 +0000 (17:04 -0800)
commitc51daac51a682eab43810c6bbd8b0ff141325ddd
treeba2947326f34337b33c90391496b6e40089bc2ad
parent8deb7c8858f7bedfcd222b2c6d29ba5184cd41f1
sysfs: Add sysfs_add/remove_files utility functions

Adding/Removing a whole array of attributes is very common. Add a standard
utility function to do this with a simple function call, instead of
requiring drivers to open code this.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/sysfs/file.c
include/linux/sysfs.h