]> 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)
commit06a44d100d648866e2ea541a5d80f738b6b61ac3
treef9de8e7f975bb132b370527d1930924049d3b658
parent34c2fda197cd7f7a66fc394034dabb97aecb021f
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