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

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 <marijn.suijten@somainline.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20220629225331.357308-3-marijn.suijten@somainline.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>

authored by

Marijn Suijten and committed by
Stephen Boyd
df63af17 909fcb19

+7
+7
include/linux/clk-provider.h
··· 980 980 (parent_names), NULL, NULL, (flags), (reg), \ 981 981 (shift), BIT((width)) - 1, (clk_mux_flags), \ 982 982 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)) 983 990 984 991 int clk_mux_val_to_index(struct clk_hw *hw, const u32 *table, unsigned int flags, 985 992 unsigned int val);