Skip to content

Commit 65df390

Browse files
Pei Xiaobebarino
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/bda59ad46afae6e7484edf8e2f7bf23ceafe51e9.1752046270.git.xiaopei01@kylinos.cn Acked-by: Thierry Reding <[email protected]> Signed-off-by: Stephen Boyd <[email protected]>
1 parent 2dc2ca9 commit 65df390

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

drivers/clk/tegra/clk-periph.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ static void clk_periph_restore_context(struct clk_hw *hw)
132132
clk_periph_set_parent(hw, parent_id);
133133
}
134134

135-
const struct clk_ops tegra_clk_periph_ops = {
135+
static const struct clk_ops tegra_clk_periph_ops = {
136136
.get_parent = clk_periph_get_parent,
137137
.set_parent = clk_periph_set_parent,
138138
.recalc_rate = clk_periph_recalc_rate,

drivers/clk/tegra/clk.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,6 @@ struct tegra_clk_periph {
629629

630630
#define TEGRA_CLK_PERIPH_MAGIC 0x18221223
631631

632-
extern const struct clk_ops tegra_clk_periph_ops;
633632
struct clk *tegra_clk_register_periph(const char *name,
634633
const char * const *parent_names, int num_parents,
635634
struct tegra_clk_periph *periph, void __iomem *clk_base,

0 commit comments

Comments
 (0)