X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=blobdiff_plain;f=include%2Flinux%2Fsysfs.h;h=2b9cd8d84e6c34b2f326365ad10f7e752ef697a9;hp=dac0859e6440eff158588997a66cc3414520ce96;hb=d4cf625cc1965ccf4433bce0bfb62c9d5c2ef436;hpb=0d189b4451f424bdb4296a0c791b9cd731bc317e diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h index dac0859e6440..2b9cd8d84e6c 100644 --- a/include/linux/sysfs.h +++ b/include/linux/sysfs.h @@ -80,6 +80,15 @@ struct attribute_group { #define __ATTR_NULL { .attr = { .name = NULL } } +#define ATTRIBUTE_GROUPS(name) \ +static const struct attribute_group name##_group = { \ + .attrs = name##_attrs, \ +}; \ +static const struct attribute_group *name##_groups[] = { \ + &name##_group, \ + NULL, \ +} + #define attr_name(_attr) (_attr).attr.name struct file;