net: bonding: Convert to use sysfs_emit()/sysfs_emit_at() APIs
authorWang Yufen <wangyufen@huawei.com>
Wed, 28 Sep 2022 12:30:14 +0000 (20:30 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Sep 2022 11:29:45 +0000 (12:29 +0100)
commit96e0718165a0d36ed4cba365c542818f20bf7640
tree1775d92c785e73814679a11e82eaa8432ed6d3c7
parent73c2e90a0edc84751c4b95b12fc52051dd60f542
net: bonding: Convert to use sysfs_emit()/sysfs_emit_at() APIs

Follow the advice of the Documentation/filesystems/sysfs.rst and show()
should only use sysfs_emit() or sysfs_emit_at() when formatting the value
to be returned to user space.

Signed-off-by: Wang Yufen <wangyufen@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_sysfs.c
drivers/net/bonding/bond_sysfs_slave.c