hwmon: (intel-m10-bmc-hwmon) use devm_hwmon_sanitize_name()
authorMichael Walle <michael@walle.cc>
Tue, 5 Apr 2022 09:24:52 +0000 (11:24 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 17 May 2022 12:53:00 +0000 (05:53 -0700)
commit340b3b6aa47ae13e1d46ecb5e03ec2c260603f63
tree685271b17292ba843bb75911a172e58b3ce9b5e4
parent1ad6c3b7ef132e1d8c5d606008069724625c8daf
hwmon: (intel-m10-bmc-hwmon) 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: Xu Yilun <yilun.xu@intel.com>
Reviewed-by: Tom Rix <trix@redhat.com>
Link: https://lore.kernel.org/r/20220405092452.4033674-3-michael@walle.cc
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/intel-m10-bmc-hwmon.c