summaryrefslogtreecommitdiffstats
path: root/drivers/clk/samsung/clk.h
diff options
context:
space:
mode:
authorSam Protsenko <semen.protsenko@linaro.org>2023-03-07 01:24:21 +0100
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>2023-03-07 08:38:54 +0100
commitbed76f697a9adda26c40ce4a064f371d54e71331 (patch)
treec474c9354294fdad5a2254be27fd8b7fc75c340e /drivers/clk/samsung/clk.h
parentclk: samsung: exynos850: Add AUD and HSI main gate clocks (diff)
downloadlinux-bed76f697a9adda26c40ce4a064f371d54e71331.tar.xz
linux-bed76f697a9adda26c40ce4a064f371d54e71331.zip
clk: samsung: Extract clocks registration to common function
It might be useful to have a separate clocks registration function, so it can be called from different users. Extract that common code from samsung_cmu_register_one() to samsung_cmu_register_clocks(). Also make that new function global as it's going to be used in other modules further. Tested-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org> Link: https://lore.kernel.org/r/20230307002423.24454-2-semen.protsenko@linaro.org Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Diffstat (limited to 'drivers/clk/samsung/clk.h')
-rw-r--r--drivers/clk/samsung/clk.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/clk/samsung/clk.h b/drivers/clk/samsung/clk.h
index 3fd6c0868921..ab9c3d7a25b3 100644
--- a/drivers/clk/samsung/clk.h
+++ b/drivers/clk/samsung/clk.h
@@ -377,6 +377,8 @@ void samsung_clk_register_pll(struct samsung_clk_provider *ctx,
void samsung_clk_register_cpu(struct samsung_clk_provider *ctx,
const struct samsung_cpu_clock *list, unsigned int nr_clk);
+void samsung_cmu_register_clocks(struct samsung_clk_provider *ctx,
+ const struct samsung_cmu_info *cmu);
struct samsung_clk_provider *samsung_cmu_register_one(
struct device_node *,
const struct samsung_cmu_info *);