diff options
| author | Michael Trimarchi <[email protected]> | 2024-07-05 09:19:51 +0200 |
|---|---|---|
| committer | Fabio Estevam <[email protected]> | 2024-07-06 15:39:22 -0300 |
| commit | 9a827d91495171f44563db9fe4e621fea43d8178 (patch) | |
| tree | 2ea058ed8a49abbd19ed237abe340d46280580cb /drivers | |
| parent | d0e4f56c4793a24e4ee8300320fe53d627d5a234 (diff) | |
clk: clk-mux: Make public the clk_fetch_parent_index
Make public the clk_fetch_parent_index and rename it. This allow
us to be reused in driver specialization
Signed-off-by: Michael Trimarchi <[email protected]>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/clk/clk-mux.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/clk/clk-mux.c b/drivers/clk/clk-mux.c index 39e01c3fbc6..62477e15d27 100644 --- a/drivers/clk/clk-mux.c +++ b/drivers/clk/clk-mux.c @@ -101,8 +101,7 @@ u8 clk_mux_get_parent(struct clk *clk) return clk_mux_val_to_index(clk, mux->table, mux->flags, val); } -static int clk_fetch_parent_index(struct clk *clk, - struct clk *parent) +int clk_mux_fetch_parent_index(struct clk *clk, struct clk *parent) { struct clk_mux *mux = to_clk_mux(clk); @@ -126,7 +125,7 @@ static int clk_mux_set_parent(struct clk *clk, struct clk *parent) u32 val; u32 reg; - index = clk_fetch_parent_index(clk, parent); + index = clk_mux_fetch_parent_index(clk, parent); if (index < 0) { log_err("Could not fetch index\n"); return index; |
