Skip to content

Commit df63af1

Browse files
MarijnS95bebarino
authored andcommitted
clk: mux: Introduce devm_clk_hw_register_mux_parent_hws()
Add the devres variant of clk_hw_register_mux_hws() for registering a mux clock with clk_hw parent pointers instead of parent names. Signed-off-by: Marijn Suijten <[email protected]> Reviewed-by: Dmitry Baryshkov <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent 909fcb1 commit df63af1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

include/linux/clk-provider.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -980,6 +980,13 @@ struct clk *clk_register_mux_table(struct device *dev, const char *name,
980980
(parent_names), NULL, NULL, (flags), (reg), \
981981
(shift), BIT((width)) - 1, (clk_mux_flags), \
982982
NULL, (lock))
983+
#define devm_clk_hw_register_mux_parent_hws(dev, name, parent_hws, \
984+
num_parents, flags, reg, shift, \
985+
width, clk_mux_flags, lock) \
986+
__devm_clk_hw_register_mux((dev), NULL, (name), (num_parents), NULL, \
987+
(parent_hws), NULL, (flags), (reg), \
988+
(shift), BIT((width)) - 1, \
989+
(clk_mux_flags), NULL, (lock))
983990

984991
int clk_mux_val_to_index(struct clk_hw *hw, const u32 *table, unsigned int flags,
985992
unsigned int val);

0 commit comments

Comments
 (0)