]> git.baikalelectronics.ru Git - kernel.git/commit
net-sysfs: Convert to use sysfs_emit() APIs
authorWang Yufen <wangyufen@huawei.com>
Wed, 28 Sep 2022 11:49:44 +0000 (19:49 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Sep 2022 11:27:44 +0000 (12:27 +0100)
commita80ca746827cf8a651740a21d4d04db05e7c0d14
tree106e3dd8928b1dbd37baa670fc6d54be6c66f24d
parent9e1a33b274686f1a93a417c1b7e7b9bb0ccae9b4
net-sysfs: Convert to use sysfs_emit() 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>
net/core/net-sysfs.c