clk: Add CLK_HW_INIT_PARENT_DATA macro using .parent_data
authorChen-Yu Tsai <wens@csie.org>
Sun, 21 Apr 2019 23:17:50 +0000 (07:17 +0800)
committerChen-Yu Tsai <wens@csie.org>
Tue, 18 Jun 2019 11:38:59 +0000 (19:38 +0800)
commit13933109dff0a5abbfc3980304c6c21c90829810
treefeb1b1b8653ad0f578dbb2f0401643611d24b5c4
parent2d6b4f33e637bf51c50c536966a19e94a59f3212
clk: Add CLK_HW_INIT_PARENT_DATA macro using .parent_data

With the new clk parenting code, struct clk_init_data was expanded to
include .parent_data, for clk drivers that have parents referenced using
a combination of device tree clock-names, clock indices, and/or struct
clk_hw pointers.

Add a new macro that can take a list of struct clk_parent_data for
drivers to use.

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