clk: Add CLK_HW_INIT_FW_NAME macro using .fw_name in .parent_data
authorChen-Yu Tsai <wens@csie.org>
Fri, 3 May 2019 03:49:03 +0000 (11:49 +0800)
committerChen-Yu Tsai <wens@csie.org>
Tue, 18 Jun 2019 11:38:59 +0000 (19:38 +0800)
commit2d6b4f33e637bf51c50c536966a19e94a59f3212
tree07959a9b58a87f3c2413b13d4a2ce1325b9276f9
parent99600fd47eafd20b9ba6e04562bb2fcc48475344
clk: Add CLK_HW_INIT_FW_NAME macro using .fw_name in .parent_data

With the new clk parenting code, 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 clk_hw
pointers.

Add a CLK_HW_INIT macro for specifying a single parent from the device
tree using .fw_name in struct clk_parent_data.

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