Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Andy Shevchenko and committed by
Alexandre Belloni
fed5aaeb bbe8d4fe

+1 -5
+1 -5
drivers/rtc/sysfs.c
··· 298 298 .is_visible = rtc_attr_is_visible, 299 299 .attrs = rtc_attrs, 300 300 }; 301 - 302 - static const struct attribute_group *rtc_attr_groups[] = { 303 - &rtc_attr_group, 304 - NULL 305 - }; 301 + __ATTRIBUTE_GROUPS(rtc_attr); 306 302 307 303 const struct attribute_group **rtc_get_dev_attribute_groups(void) 308 304 {