Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: tegra: periph: Make tegra_clk_periph_ops static

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>

authored by

Pei Xiao and committed by
Stephen Boyd
65df390b 2dc2ca90

+1 -2
+1 -1
drivers/clk/tegra/clk-periph.c
··· 132 132 clk_periph_set_parent(hw, parent_id); 133 133 } 134 134 135 - const struct clk_ops tegra_clk_periph_ops = { 135 + static const struct clk_ops tegra_clk_periph_ops = { 136 136 .get_parent = clk_periph_get_parent, 137 137 .set_parent = clk_periph_set_parent, 138 138 .recalc_rate = clk_periph_recalc_rate,
-1
drivers/clk/tegra/clk.h
··· 629 629 630 630 #define TEGRA_CLK_PERIPH_MAGIC 0x18221223 631 631 632 - extern const struct clk_ops tegra_clk_periph_ops; 633 632 struct clk *tegra_clk_register_periph(const char *name, 634 633 const char * const *parent_names, int num_parents, 635 634 struct tegra_clk_periph *periph, void __iomem *clk_base,