Skip to content

Commit fed5aae

Browse files
andy-shevalexandrebelloni
authored andcommitted
rtc: sysfs: use __ATTRIBUTE_GROUPS()
Embrace __ATTRIBUTE_GROUPS() to avoid boiler plate code. This should not introduce any functional changes. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20250702080108.2722905-1-andriy.shevchenko@linux.intel.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
1 parent bbe8d4f commit fed5aae

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

drivers/rtc/sysfs.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -298,11 +298,7 @@ static struct attribute_group rtc_attr_group = {
298298
.is_visible = rtc_attr_is_visible,
299299
.attrs = rtc_attrs,
300300
};
301-
302-
static const struct attribute_group *rtc_attr_groups[] = {
303-
&rtc_attr_group,
304-
NULL
305-
};
301+
__ATTRIBUTE_GROUPS(rtc_attr);
306302

307303
const struct attribute_group **rtc_get_dev_attribute_groups(void)
308304
{

0 commit comments

Comments
 (0)