]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc2c2c0c4d10a752d9601f6b28703f001a867de45
tree1775d92c785e73814679a11e82eaa8432ed6d3c7
parent55fa46d547549dfff29ee945bd607a42430ef860
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