diff options
author | Michael Walle <[email protected]> | 2022-04-05 11:24:51 +0200 |
---|---|---|
committer | Guenter Roeck <[email protected]> | 2022-05-17 05:52:59 -0700 |
commit | 1ad6c3b7ef132e1d8c5d606008069724625c8daf (patch) | |
tree | c90b3153ca16a77a6605148c66d2cd2fda75dea7 /tools/perf/scripts/python/net_dropmonitor.py | |
parent | 752b927951eaa6297bffc12efe603df10496566e (diff) |
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: Michael Walle <[email protected]>
Reviewed-by: Tom Rix <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions