Lines Matching defs:groups
318 const struct attribute_group **groups, **old;
325 groups = rtc->dev.groups;
326 if (groups)
327 for (; *groups; groups++)
330 for (groups = grps; *groups; groups++)
334 groups = devm_kcalloc(&rtc->dev, new_cnt, sizeof(*groups), GFP_KERNEL);
335 if (!groups)
337 memcpy(groups, rtc->dev.groups, old_cnt * sizeof(*groups));
338 memcpy(groups + old_cnt, grps, add_cnt * sizeof(*groups));
339 groups[old_cnt + add_cnt] = NULL;
341 old = rtc->dev.groups;
342 rtc->dev.groups = groups;
352 const struct attribute_group *groups[] = { grp, NULL };
354 return rtc_add_groups(rtc, groups);