]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
clk: tegra: periph: Make tegra_clk_periph_ops static
authorPei Xiao <xiaopei01@kylinos.cn>
Wed, 9 Jul 2025 07:37:14 +0000 (15:37 +0800)
committerStephen Boyd <sboyd@kernel.org>
Thu, 24 Jul 2025 22:29:17 +0000 (15:29 -0700)
Reduce symbol visibility by converting tegra_clk_periph_ops to static.
Removed the extern declaration from clk.h as the symbol is now locally
scoped to clk-periph.c.

Signed-off-by: Pei Xiao <xiaopei01@kylinos.cn>
Link: https://lore.kernel.org/r/bda59ad46afae6e7484edf8e2f7bf23ceafe51e9.1752046270.git.xiaopei01@kylinos.cn
Acked-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/tegra/clk-periph.c
drivers/clk/tegra/clk.h

index c9fc52a36fce9c64120b9c036456050c053247fb..fa0cd7bb8ee67801dde3c65eababe30c96a176ef 100644 (file)
@@ -132,7 +132,7 @@ static void clk_periph_restore_context(struct clk_hw *hw)
        clk_periph_set_parent(hw, parent_id);
 }
 
-const struct clk_ops tegra_clk_periph_ops = {
+static const struct clk_ops tegra_clk_periph_ops = {
        .get_parent = clk_periph_get_parent,
        .set_parent = clk_periph_set_parent,
        .recalc_rate = clk_periph_recalc_rate,
index 5d80d8b79b8e0571a73badcde82781e6655fe7e6..9ea839af14bcdd2a73e5fd84ab79a348e8ed6c33 100644 (file)
@@ -629,7 +629,6 @@ struct tegra_clk_periph {
 
 #define TEGRA_CLK_PERIPH_MAGIC 0x18221223
 
-extern const struct clk_ops tegra_clk_periph_ops;
 struct clk *tegra_clk_register_periph(const char *name,
                const char * const *parent_names, int num_parents,
                struct tegra_clk_periph *periph, void __iomem *clk_base,