]> 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)
commit55fa46d547549dfff29ee945bd607a42430ef860
tree106e3dd8928b1dbd37baa670fc6d54be6c66f24d
parent1648a4177f58138c256a1594e1d817be985d8f14
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