net: phy: nxp-tja11xx: use devm_hwmon_sanitize_name()
authorMichael Walle <michael@walle.cc>
Wed, 22 Jun 2022 12:35:43 +0000 (14:35 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 24 Jun 2022 03:52:19 +0000 (20:52 -0700)
commit363b65459b78c0488721196186fac7f48593234e
tree9c98a5ad4ce785ea74609f549e391b8628702a97
parent3f118c449c8ef7713e9acdebe333d947ab46933b
net: phy: nxp-tja11xx: use devm_hwmon_sanitize_name()

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

Signed-off-by: Michael Walle <michael@walle.cc>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/nxp-tja11xx.c