]> asedeno.scripts.mit.edu Git - linux.git/commit
clk: fixed-factor: Add CLK_FIXED_FACTOR_HWS which takes list of struct clk_hw *
authorChen-Yu Tsai <wens@csie.org>
Mon, 6 May 2019 02:43:16 +0000 (10:43 +0800)
committerChen-Yu Tsai <wens@csie.org>
Tue, 18 Jun 2019 11:39:00 +0000 (19:39 +0800)
commit1bef004e2680511ecbb6b5db3954fba430501ecb
treef316540f696e9b05162d86178612bea8b43c6a13
parentd7b15114aba956ca395ec5cc28f68fe861ffc208
clk: fixed-factor: Add CLK_FIXED_FACTOR_HWS which takes list of struct clk_hw *

With the new clk parenting code, clk_init_data was expanded to include
.parent_hws, for clk drivers to directly reference parents by clk_hw.

Add a new macro, CLK_FIXED_FACTOR_HWS, that can take an array of pointers
to struct clk_hw, instead of a string, as its parent. Taking an array
instead of a direct pointer allows the reuse of the array for multiple
clks, rather than having one compound literal with the same contents
allocated for each clk declaration.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
include/linux/clk-provider.h