Lines Matching refs:groups
127 const struct attribute_group **groups) in driver_add_groups() argument
132 if (groups) { in driver_add_groups()
133 for (i = 0; groups[i]; i++) { in driver_add_groups()
134 error = sysfs_create_group(&drv->p->kobj, groups[i]); in driver_add_groups()
138 groups[i]); in driver_add_groups()
147 const struct attribute_group **groups) in driver_remove_groups() argument
151 if (groups) in driver_remove_groups()
152 for (i = 0; groups[i]; i++) in driver_remove_groups()
153 sysfs_remove_group(&drv->p->kobj, groups[i]); in driver_remove_groups()
187 ret = driver_add_groups(drv, drv->groups); in driver_register()
210 driver_remove_groups(drv, drv->groups); in driver_unregister()