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)
commit1c205ae18db53ff72985dd79f3baaf2dbaba6db7
treeba2947326f34337b33c90391496b6e40089bc2ad
parent265d2e2e31c5f6dc1b20ae1653a17fdba706f79e
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