Skip to content
Commit 1ad6c3b7 authored by Michael Walle's avatar Michael Walle Committed by Guenter Roeck
Browse files

hwmon: introduce hwmon_sanitize_name()



More and more drivers will check for bad characters in the hwmon name
and all are using the same code snippet. Consolidate that code by adding
a new hwmon_sanitize_name() function.

Signed-off-by: default avatarMichael Walle <michael@walle.cc>
Reviewed-by: default avatarTom Rix <trix@redhat.com>
Link: https://lore.kernel.org/r/20220405092452.4033674-2-michael@walle.cc


Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 752b9279
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment