Skip to content

Commit e37fe0b

Browse files
committed
clk: rockchip: rename branch_muxgrf to branch_grf_mux
We now have a number of new branch-types coming from the "General Register Files" (gates and mmc phase clocks). Their naming as branch_grf_foo is way nicer, so rename the old branch_muxgrf to a similar scheme. Signed-off-by: Heiko Stuebner <heiko@sntech.de> Link: https://lore.kernel.org/r/20250508182752.1925313-2-heiko@sntech.de
1 parent 61bf658 commit e37fe0b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

drivers/clk/rockchip/clk.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ void rockchip_clk_register_branches(struct rockchip_clk_provider *ctx,
509509
clk = NULL;
510510

511511
/* for GRF-dependent branches, choose the right grf first */
512-
if ((list->branch_type == branch_muxgrf ||
512+
if ((list->branch_type == branch_grf_mux ||
513513
list->branch_type == branch_grf_gate ||
514514
list->branch_type == branch_grf_mmc) &&
515515
list->grf_type != grf_type_sys) {
@@ -540,7 +540,7 @@ void rockchip_clk_register_branches(struct rockchip_clk_provider *ctx,
540540
list->mux_shift, list->mux_width,
541541
list->mux_flags, &ctx->lock);
542542
break;
543-
case branch_muxgrf:
543+
case branch_grf_mux:
544544
clk = rockchip_clk_register_muxgrf(list->name,
545545
list->parent_names, list->num_parents,
546546
flags, grf, list->muxdiv_offset,

drivers/clk/rockchip/clk.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ struct clk *rockchip_clk_register_gate_grf(const char *name,
664664
enum rockchip_clk_branch_type {
665665
branch_composite,
666666
branch_mux,
667-
branch_muxgrf,
667+
branch_grf_mux,
668668
branch_divider,
669669
branch_fraction_divider,
670670
branch_gate,
@@ -943,7 +943,7 @@ struct rockchip_clk_branch {
943943
#define MUXGRF(_id, cname, pnames, f, o, s, w, mf, gt) \
944944
{ \
945945
.id = _id, \
946-
.branch_type = branch_muxgrf, \
946+
.branch_type = branch_grf_mux, \
947947
.name = cname, \
948948
.parent_names = pnames, \
949949
.num_parents = ARRAY_SIZE(pnames), \

0 commit comments

Comments
 (0)