diff options
author | Julian Wiedmann <jwi@linux.ibm.com> | 2020-12-07 14:12:30 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-12-07 15:55:21 +0100 |
commit | 0b8da8110b4fa3314a060e5c5a3b35a22b81e900 (patch) | |
tree | e28ec8ac21d25086d6a33ee793ccc22a676d6165 /drivers/s390/net/qeth_l3.h | |
parent | s390/ccwgroup: use bus->dev_groups for bus-based sysfs attributes (diff) | |
download | linux-0b8da8110b4fa3314a060e5c5a3b35a22b81e900.tar.xz linux-0b8da8110b4fa3314a060e5c5a3b35a22b81e900.zip |
s390/qeth: use dev->groups for common sysfs attributes
All qeth devices have a minimum set of sysfs attributes, and non-OSN
devices share a group of additional attributes. Depending on whether
the device is forced to use a specific discipline, the device_type then
specifies further attributes.
Shift the common attributes into dev->groups, so that the device_type
only contains the discipline-specific attributes. This avoids exposing
the common attributes to the disciplines, and nicely cleans up our
sysfs code.
While replacing the qeth_l*_*_device_attributes() helpers, switch from
sysfs_*_groups() to the more generic device_*_groups().
Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/s390/net/qeth_l3.h')
-rw-r--r-- | drivers/s390/net/qeth_l3.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/s390/net/qeth_l3.h b/drivers/s390/net/qeth_l3.h index acd130cfbab3..30c2b31d99f6 100644 --- a/drivers/s390/net/qeth_l3.h +++ b/drivers/s390/net/qeth_l3.h @@ -103,8 +103,6 @@ extern const struct attribute_group *qeth_l3_attr_groups[]; int qeth_l3_ipaddr_to_string(enum qeth_prot_versions proto, const u8 *addr, char *buf); -int qeth_l3_create_device_attributes(struct device *); -void qeth_l3_remove_device_attributes(struct device *); int qeth_l3_setrouting_v4(struct qeth_card *); int qeth_l3_setrouting_v6(struct qeth_card *); int qeth_l3_add_ipato_entry(struct qeth_card *, struct qeth_ipato_entry *); |