]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
sysfs.h: add ATTRIBUTE_GROUPS() macro
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 14 Jul 2013 23:05:52 +0000 (16:05 -0700)
committerZefan Li <lizefan@huawei.com>
Tue, 14 Apr 2015 09:33:53 +0000 (17:33 +0800)
commitaa12b754cfbd5b5c900d43a6a215b096d8afc0ee
tree8fae2734605e868e1f0a016496dbf02156aa520b
parent5b724689fa7063c323b0dd74e78c51617349cd5f
sysfs.h: add ATTRIBUTE_GROUPS() macro

commit f2f37f58b1b933b06d6d84e80a31a1b500fb0db2 upstream.

To make it easier for driver subsystems to work with attribute groups,
create the ATTRIBUTE_GROUPS macro to remove some of the repetitive
typing for the most common use for attribute groups.

Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Zefan Li <lizefan@huawei.com>
include/linux/sysfs.h