sysfs: add sysfs_create/remove_groups()
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Aug 2013 20:47:50 +0000 (13:47 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Aug 2013 23:02:19 +0000 (16:02 -0700)
commit3e9b2bae8369661070622d05570cbcdfa01770e6
treea5e22d5953306740dca0da253752ad6830baaa50
parentfa2be40fe7c0aa3b7accbf6dfa9ef0976e191d4c
sysfs: add sysfs_create/remove_groups()

These functions are being open-coded in 3 different places in the driver
core, and other driver subsystems will want to start doing this as well,
so move it to the sysfs core to keep it all in one place, where we know
it is written properly.

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/bus.c
drivers/base/core.c
drivers/base/driver.c
fs/sysfs/group.c
include/linux/sysfs.h