]> git.baikalelectronics.ru Git - kernel.git/commit
net: sfp: use hwmon_sanitize_name()
authorMichael Walle <michael@walle.cc>
Wed, 22 Jun 2022 12:35:42 +0000 (14:35 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 24 Jun 2022 03:52:19 +0000 (20:52 -0700)
commit989eb934de9ea664ddb47d8a6fcb2e5acffb920b
tree752e43aa0a11be01b9b94b0e2b43bce4a679b2e9
parenta1d4a58c4b76fe1f71d44c364448846683a1884d
net: sfp: use hwmon_sanitize_name()

Instead of open-coding the bad characters replacement in the hwmon name,
use the new hwmon_sanitize_name().

Signed-off-by: Michael Walle <michael@walle.cc>
Acked-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/sfp.c