sysfs: add sysfs_create/remove_groups()
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Aug 2013 20:47:50 +0000 (13:47 -0700)
committerCaesar Wang <wxt@rock-chips.com>
Tue, 1 Sep 2015 03:11:27 +0000 (11:11 +0800)
commitcce63258ecb1950b79f05e70ffc75bd4d3858a07
tree0128b1eb48731afb6ded5e1a2690f8a253139f49
parenteffbcfa6c5d5773cb1a9f46b3d029992bcc77a00
sysfs: add sysfs_create/remove_groups()

commit 3e9b2bae8369661070622d05570cbcdfa01770e6 upstream

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.

Conflicts:
git checkout drivers/base/bus.c, In actul we don't use the interfaces in
drivers/base/bus.c

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Change-Id: I0046a5572c780a0ea2b175ef753c408f6c10ba85
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
drivers/base/core.c
drivers/base/driver.c
fs/sysfs/group.c
include/linux/sysfs.h