]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc06a91565cbb112c8fea208cf3a94b26f7916567
tree9c98a5ad4ce785ea74609f549e391b8628702a97
parentb081c99ce3aa7078cecc7b82ad7bd902f79e4203
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