]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: Convert to use sysfs_emit() APIs
authorWang Yufen <wangyufen@huawei.com>
Wed, 28 Sep 2022 11:34:20 +0000 (19:34 +0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 30 Sep 2022 02:19:41 +0000 (19:19 -0700)
commitc4cbb0d6fe0d062dddf7a52c313c8ba0eaa41195
tree6e1c2d6a2f368e59b16a4dcb397fa6d3baf5a6bb
parent350bcfbc266a6a7da7d1289ebe8c2e39267a2aeb
net: phy: 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>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/1664364860-29153-1-git-send-email-wangyufen@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/mdio_bus.c
drivers/net/phy/phy_device.c