]> 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)
commitd2767f145d4b270bfa5e615bf887f4e5d4e66bff
tree1775d92c785e73814679a11e82eaa8432ed6d3c7
parenta80ca746827cf8a651740a21d4d04db05e7c0d14
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