From patchwork Wed Jun 28 15:32:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 13295959 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4855EEB64DA for ; Wed, 28 Jun 2023 15:32:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232263AbjF1Pc3 (ORCPT ); Wed, 28 Jun 2023 11:32:29 -0400 Received: from mga02.intel.com ([134.134.136.20]:53515 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232242AbjF1PcT (ORCPT ); Wed, 28 Jun 2023 11:32:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1687966338; x=1719502338; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Ud9mOLRXe2468JTAmvr7pvOnXoRBmeLuDYPpo8mbgqM=; b=XTWEzvdVo3V4B+QKMA+hJJgJXoIEMbZAq7lGNT3H1UwvyljQSQyUe0gI 22Vsxx6tFx8b5eDY8Spo1R7fBSu6tvjVEz2l7HRplpjaZx21B5bhSD1oJ EzlntW6WtfqCHCdIOl5ryxm15aC8V+XX3EfGwa97R65lC1jlT5h8oeu3i Rb2c9HdM6DHyPTm2ORJFdFvNAugFt9S5+GVXO2LXo3r+i7Wnu8tWb2pBe pSBAx3ggdvNS7ECePE5mSsHQmJoPa/E0IGBd/4AEEOVg8WTrFdfj1ndWA 28eMaS67ejrTpw7aRkY0mjrbgSIiW17eGtSsHt1aBl77Wk4UyjXUyDDM2 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10755"; a="351666434" X-IronPort-AV: E=Sophos;i="6.01,165,1684825200"; d="scan'208";a="351666434" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jun 2023 08:32:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10755"; a="720270171" X-IronPort-AV: E=Sophos;i="6.01,165,1684825200"; d="scan'208";a="720270171" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga007.fm.intel.com with ESMTP; 28 Jun 2023 08:32:13 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 83997E1; Wed, 28 Jun 2023 18:32:14 +0300 (EEST) From: Andy Shevchenko To: Greg Kroah-Hartman , Saravana Kannan , Andy Shevchenko , Stephen Boyd , Dario Binacchi , Tony Lindgren , linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-tegra@vger.kernel.org, linux-omap@vger.kernel.org Cc: "Rafael J. Wysocki" , Peter De Schrijver , Prashant Gaikwad , Michael Turquette , Thierry Reding , Jonathan Hunter , Tero Kristo , Andy Shevchenko Subject: [PATCH v1 0/4] clk: Add kstrdup_and_replace() helper and use it Date: Wed, 28 Jun 2023 18:32:07 +0300 Message-Id: <20230628153211.52988-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.40.0.1.gaa8946217a0b MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org 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. 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(-)