sysfs: add sysfs_create/remove_groups()
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Aug 2013 20:47:50 +0000 (13:47 -0700)
committerMaciej Wereski <m.wereski@partner.samsung.com>
Mon, 23 Mar 2015 17:33:26 +0000 (18:33 +0100)
commit22348f39aeacb24797cf8e0a8006d447efe3a38e
tree95d03ba91bbb34b018f2d257f4df6dd987261cea
parente7c1a5aca85360f91996bfd37d99d93cf313be55
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/core.c
drivers/base/driver.c
fs/sysfs/group.c
include/linux/sysfs.h