aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorAndrew Lunn <[email protected]>2018-07-17 21:48:12 +0200
committerDavid S. Miller <[email protected]>2018-07-18 10:01:46 +0900
commitdcb5d0fcaa1ddd0af9c18ef51e6b05e38a6cec71 (patch)
tree6df2dadc6a18ce56330c1b0ac18fd3495d9ae23a /tools/perf/scripts/python
parentaa7f29b07c8702127124d0522e3cd46850cdbc41 (diff)
hwmon: Add helper to tell if a char is invalid in a name
HWMON device names are not allowed to contain "-* \t\n". Add a helper which will return true if passed an invalid character. It can be used to massage a string into a hwmon compatible name by replacing invalid characters with '_'. Signed-off-by: Andrew Lunn <[email protected]> Acked-by: Guenter Roeck <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions