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)
commitb5155ddd22bc2427465a97c494bbe6289152e80a
tree6e1c2d6a2f368e59b16a4dcb397fa6d3baf5a6bb
parent92346bde96d6044900a9add8013b97b3241e60b1
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