Lines Matching refs:groups
36 const struct attribute_group **groups; member
507 const struct attribute_group **groups) in __hwmon_device_register() argument
533 if (groups) in __hwmon_device_register()
534 for (i = 0; groups[i]; i++) in __hwmon_device_register()
537 hwdev->groups = devm_kcalloc(dev, ngroups, sizeof(*groups), in __hwmon_device_register()
539 if (!hwdev->groups) { in __hwmon_device_register()
552 hwdev->groups[ngroups++] = &hwdev->group; in __hwmon_device_register()
554 if (groups) { in __hwmon_device_register()
555 for (i = 0; groups[i]; i++) in __hwmon_device_register()
556 hwdev->groups[ngroups++] = groups[i]; in __hwmon_device_register()
559 hdev->groups = hwdev->groups; in __hwmon_device_register()
561 hdev->groups = groups; in __hwmon_device_register()
618 const struct attribute_group **groups) in hwmon_device_register_with_groups() argument
620 return __hwmon_device_register(dev, name, drvdata, NULL, groups); in hwmon_device_register_with_groups()
641 const struct attribute_group **groups) in hwmon_device_register_with_info() argument
646 return __hwmon_device_register(dev, name, drvdata, chip, groups); in hwmon_device_register_with_info()
703 const struct attribute_group **groups) in devm_hwmon_device_register_with_groups() argument
714 hwdev = hwmon_device_register_with_groups(dev, name, drvdata, groups); in devm_hwmon_device_register_with_groups()
743 const struct attribute_group **groups) in devm_hwmon_device_register_with_info() argument
755 groups); in devm_hwmon_device_register_with_info()