following this link
I did:
static const struct attribute const *attrs1= {
&foo_attribute.attr,
NULL,
};
static const struct attribute_group const attr_group = {
.attrs = attrs1,
};
but get these errors:
error: initializer element is not constant
error: (near initialization for 'attr_group.attrs')
found this solution but didn't understand how to solve it...
EDIT: the line triggered the error:
.attrs = attrs1,