Skip to content

clk: Add kstrdup_and_replace() helper and use it

Andy Shevchenko linux-clk linux-hardening linux-omap linux-tegra lkml 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 0 repliesNew
  2. v14 patches 4 repliesSuperseded

Changes in v2 from the cover letter

- added tag to patch 2 (Greg KH)
- fixed typo in three commit messages

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4lib/string_helpers: Add kstrdup_and_replace() helperinclude/linux/string_helpers.h lib/string_helpers.c+17 -00 replies
2/4driver core: Replace kstrdup() + strreplace() with kstrdup_and_replace()drivers/base/core.c+2 -30 replies
3/4clk: tegra: Replace kstrdup() + strreplace() with kstrdup_and_replace()drivers/clk/tegra/clk.c+2 -40 replies
4/4clk: ti: Replace kstrdup() + strreplace() with kstrdup_and_replace()drivers/clk/ti/clk.c drivers/clk/ti/clkctrl.c+7 -60 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchGreg Kroah-Hartman
1/4
2/4A-b
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/4] clk: Add kstrdup_and_replace() helper and use it

There are a few existing users and more might come which would like to have the kstrdup_and_replace() functionality.

Provide this new API and reuse it in a few users.

Since most of that is under CCF, perhaps it makes sense to route it via that tree.

Changelog v2:
- added tag to patch 2 (Greg KH)
- fixed typo in three commit messages

Andy Shevchenko (4):
lib/string_helpers: Add kstrdup_and_replace() helper driver core: Replace kstrdup() + strreplace() with
kstrdup_and_replace()
clk: tegra: Replace kstrdup() + strreplace() with
kstrdup_and_replace()
clk: ti: Replace kstrdup() + strreplace() with kstrdup_and_replace()

 drivers/base/core.c            |  5 ++---
 drivers/clk/tegra/clk.c        |  6 ++----
 drivers/clk/ti/clk.c           |  4 ++--
 drivers/clk/ti/clkctrl.c       |  9 +++++----
 include/linux/string_helpers.h |  2 ++
 lib/string_helpers.c           | 15 +++++++++++++++
 6 files changed, 28 insertions(+), 13 deletions(-)
Signature · 1 line
2.40.0.1.gaa8946217a0b