hc
2024-10-12 a5969cabbb4660eab42b6ef0412cbbd1200cf14d
kernel/samples/kobject/kset-example.c
....@@ -178,6 +178,7 @@
178178 &bar_attribute.attr,
179179 NULL, /* need to NULL terminate the list of attributes */
180180 };
181
+ATTRIBUTE_GROUPS(foo_default);
181182
182183 /*
183184 * Our own ktype for our kobjects. Here we specify our sysfs ops, the
....@@ -187,7 +188,7 @@
187188 static struct kobj_type foo_ktype = {
188189 .sysfs_ops = &foo_sysfs_ops,
189190 .release = foo_release,
190
- .default_attrs = foo_default_attrs,
191
+ .default_groups = foo_default_groups,
191192 };
192193
193194 static struct kset *example_kset;