From: "Peng Fan (OSS)" <peng.fan@oss.nxp.com> To: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, sboyd@kernel.org, mturquette@baylibre.com, shawnguo@kernel.org, s.hauer@pengutronix.de Cc: aisheng.dong@nxp.com, l.stach@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Peng Fan <peng.fan@nxp.com> Subject: [PATCH V2 3/7] clk: export of_clk_bulk_get_all Date: Thu, 26 May 2022 20:34:07 +0800 [thread overview] Message-ID: <20220526123411.270083-4-peng.fan@oss.nxp.com> (raw) In-Reply-To: <20220526123411.270083-1-peng.fan@oss.nxp.com> From: Peng Fan <peng.fan@nxp.com> Export of_clk_bulk_get_all, so drivers could use this API. Signed-off-by: Peng Fan <peng.fan@nxp.com> --- drivers/clk/clk-bulk.c | 3 ++- include/linux/clk.h | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/clk/clk-bulk.c b/drivers/clk/clk-bulk.c index e9e16425c739..470155856b02 100644 --- a/drivers/clk/clk-bulk.c +++ b/drivers/clk/clk-bulk.c @@ -43,7 +43,7 @@ static int __must_check of_clk_bulk_get(struct device_node *np, int num_clks, return ret; } -static int __must_check of_clk_bulk_get_all(struct device_node *np, +int __must_check of_clk_bulk_get_all(struct device_node *np, struct clk_bulk_data **clks) { struct clk_bulk_data *clk_bulk; @@ -68,6 +68,7 @@ static int __must_check of_clk_bulk_get_all(struct device_node *np, return num_clks; } +EXPORT_SYMBOL_GPL(of_clk_bulk_get_all); void clk_bulk_put(int num_clks, struct clk_bulk_data *clks) { diff --git a/include/linux/clk.h b/include/linux/clk.h index 39faa54efe88..ca74f4e83d25 100644 --- a/include/linux/clk.h +++ b/include/linux/clk.h @@ -372,6 +372,8 @@ int __must_check clk_bulk_get(struct device *dev, int num_clks, int __must_check clk_bulk_get_all(struct device *dev, struct clk_bulk_data **clks); +int __must_check of_clk_bulk_get_all(struct device_node *np, + struct clk_bulk_data **clks); /** * clk_bulk_get_optional - lookup and obtain a number of references to clock producer * @dev: device for clock "consumer" -- 2.25.1
WARNING: multiple messages have this Message-ID (diff)
From: "Peng Fan (OSS)" <peng.fan@oss.nxp.com> To: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, sboyd@kernel.org, mturquette@baylibre.com, shawnguo@kernel.org, s.hauer@pengutronix.de Cc: aisheng.dong@nxp.com, l.stach@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Peng Fan <peng.fan@nxp.com> Subject: [PATCH V2 3/7] clk: export of_clk_bulk_get_all Date: Thu, 26 May 2022 20:34:07 +0800 [thread overview] Message-ID: <20220526123411.270083-4-peng.fan@oss.nxp.com> (raw) In-Reply-To: <20220526123411.270083-1-peng.fan@oss.nxp.com> From: Peng Fan <peng.fan@nxp.com> Export of_clk_bulk_get_all, so drivers could use this API. Signed-off-by: Peng Fan <peng.fan@nxp.com> --- drivers/clk/clk-bulk.c | 3 ++- include/linux/clk.h | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/clk/clk-bulk.c b/drivers/clk/clk-bulk.c index e9e16425c739..470155856b02 100644 --- a/drivers/clk/clk-bulk.c +++ b/drivers/clk/clk-bulk.c @@ -43,7 +43,7 @@ static int __must_check of_clk_bulk_get(struct device_node *np, int num_clks, return ret; } -static int __must_check of_clk_bulk_get_all(struct device_node *np, +int __must_check of_clk_bulk_get_all(struct device_node *np, struct clk_bulk_data **clks) { struct clk_bulk_data *clk_bulk; @@ -68,6 +68,7 @@ static int __must_check of_clk_bulk_get_all(struct device_node *np, return num_clks; } +EXPORT_SYMBOL_GPL(of_clk_bulk_get_all); void clk_bulk_put(int num_clks, struct clk_bulk_data *clks) { diff --git a/include/linux/clk.h b/include/linux/clk.h index 39faa54efe88..ca74f4e83d25 100644 --- a/include/linux/clk.h +++ b/include/linux/clk.h @@ -372,6 +372,8 @@ int __must_check clk_bulk_get(struct device *dev, int num_clks, int __must_check clk_bulk_get_all(struct device *dev, struct clk_bulk_data **clks); +int __must_check of_clk_bulk_get_all(struct device_node *np, + struct clk_bulk_data **clks); /** * clk_bulk_get_optional - lookup and obtain a number of references to clock producer * @dev: device for clock "consumer" -- 2.25.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2022-05-26 12:33 UTC|newest] Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-05-26 12:34 [PATCH V2 0/7] imx: support i.MX93 SRC and mediamix blk ctrl Peng Fan (OSS) 2022-05-26 12:34 ` Peng Fan (OSS) 2022-05-26 12:34 ` [PATCH V2 1/7] dt-bindings: soc: add i.MX93 SRC Peng Fan (OSS) 2022-05-26 12:34 ` Peng Fan (OSS) 2022-05-30 6:43 ` Krzysztof Kozlowski 2022-05-30 6:43 ` Krzysztof Kozlowski 2022-05-30 6:57 ` Peng Fan 2022-05-30 6:57 ` Peng Fan 2022-05-30 7:40 ` Krzysztof Kozlowski 2022-05-30 7:40 ` Krzysztof Kozlowski 2022-05-26 12:34 ` [PATCH V2 2/7] dt-bindings: soc: add i.MX93 mediamix blk ctrl Peng Fan (OSS) 2022-05-26 12:34 ` Peng Fan (OSS) 2022-05-30 6:45 ` Krzysztof Kozlowski 2022-05-30 6:45 ` Krzysztof Kozlowski 2022-05-26 12:34 ` Peng Fan (OSS) [this message] 2022-05-26 12:34 ` [PATCH V2 3/7] clk: export of_clk_bulk_get_all Peng Fan (OSS) 2022-05-26 12:34 ` [PATCH V2 4/7] soc: imx: add i.MX93 SRC power domain driver Peng Fan (OSS) 2022-05-26 12:34 ` Peng Fan (OSS) 2022-05-26 12:34 ` [PATCH V2 5/7] soc: imx: add i.MX93 media blk ctrl driver Peng Fan (OSS) 2022-05-26 12:34 ` Peng Fan (OSS) 2022-05-26 12:34 ` [PATCH V2 6/7] arm64: dts: imx93: add src node Peng Fan (OSS) 2022-05-26 12:34 ` Peng Fan (OSS) 2022-05-26 12:34 ` [PATCH V2 7/7] arm64: dts: imx93: add mediamix blk ctrl node Peng Fan (OSS) 2022-05-26 12:34 ` Peng Fan (OSS)
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20220526123411.270083-4-peng.fan@oss.nxp.com \ --to=peng.fan@oss.nxp.com \ --cc=aisheng.dong@nxp.com \ --cc=devicetree@vger.kernel.org \ --cc=festevam@gmail.com \ --cc=kernel@pengutronix.de \ --cc=krzysztof.kozlowski+dt@linaro.org \ --cc=l.stach@pengutronix.de \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-imx@nxp.com \ --cc=linux-kernel@vger.kernel.org \ --cc=mturquette@baylibre.com \ --cc=peng.fan@nxp.com \ --cc=robh+dt@kernel.org \ --cc=s.hauer@pengutronix.de \ --cc=sboyd@kernel.org \ --cc=shawnguo@kernel.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.