Skip to content

lib: string: add strreplace_nonalnum

Heiner Kallweit lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 15 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2lib: string: add strreplace_nonalnuminclude/linux/string.h lib/string.c+28 -00 replies
1/2lib: string: add strreplace_nonalnuminclude/linux/string.h lib/string.c+28 -07 replies
2/2net: phy: aquantia: use new function strreplace_nonalnumdrivers/net/phy/aquantia_hwmon.c+1 -92 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net-next 0/2] lib: string: add strreplace_nonalnum

Add a new function strreplace_nonalnum that replaces all non-alphanumeric characters. Such functionality is needed e.g. when a string is supposed to be used in a file name. If '\0' is given as new character then non-alphanumeric characters are cut.

There doesn't seem to be a maintainer or mailing list for lib/string.c Therefore I hope it's ok to submit this through the netdev tree.

Heiner Kallweit (2):
lib: string: add strreplace_nonalnum
net: phy: aquantia: use new function strreplace_nonalnum

 drivers/net/phy/aquantia_hwmon.c | 10 +---------
 include/linux/string.h           |  1 +
 lib/string.c                     | 27 +++++++++++++++++++++++++++
 3 files changed, 29 insertions(+), 9 deletions(-)
Signature · 1 line
2.21.0