]> git.baikalelectronics.ru Git - kernel.git/commit
s390/ccwgroup: use bus->dev_groups for bus-based sysfs attributes
authorJulian Wiedmann <jwi@linux.ibm.com>
Mon, 7 Dec 2020 13:12:29 +0000 (14:12 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Dec 2020 14:55:21 +0000 (06:55 -0800)
commit3c76d5efe07ce0e5ab6aa4e8003345d4dfd80856
treef9de8e7f975bb132b370527d1930924049d3b658
parent6cb1794ea03bc4cbb9d558638b57d0664e35a2da
s390/ccwgroup: use bus->dev_groups for bus-based sysfs attributes

Bus drivers have their own way of describing the sysfs attributes that
all devices on a bus should provide.
Switch ccwgroup_attr_groups over to use bus->dev_groups, and thus
free up dev->groups for usage by the ccwgroup device drivers.

While adjusting the attribute naming, use ATTRIBUTE_GROUPS() to get rid
of some boilerplate code.

Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Acked-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/s390/cio/ccwgroup.c