Lines Matching refs:groups
319 const struct attribute_group **groups, **old;
324 groups = rtc->dev.groups;
325 if (groups)
326 for (; *groups; groups++)
329 for (groups = grps; *groups; groups++)
333 groups = devm_kcalloc(&rtc->dev, new_cnt, sizeof(*groups), GFP_KERNEL);
334 if (!groups)
336 memcpy(groups, rtc->dev.groups, old_cnt * sizeof(*groups));
337 memcpy(groups + old_cnt, grps, add_cnt * sizeof(*groups));
338 groups[old_cnt + add_cnt] = NULL;
340 old = rtc->dev.groups;
341 rtc->dev.groups = groups;
351 const struct attribute_group *groups[] = { grp, NULL };
353 return rtc_add_groups(rtc, groups);