]> 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)
commit7de56c5081f67ff4e519b625de9a3aa5641268ce
tree6e1c2d6a2f368e59b16a4dcb397fa6d3baf5a6bb
parent1d2feb63279ac5619413be093dc467ac58190c41
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