clk: sunxi-ng: sun8i-r: Use local parent references for CLK_HW_INIT_*
authorChen-Yu Tsai <wens@csie.org>
Fri, 3 May 2019 03:18:24 +0000 (11:18 +0800)
committerChen-Yu Tsai <wens@csie.org>
Tue, 18 Jun 2019 11:39:00 +0000 (19:39 +0800)
commit6873d20726563c5ee54b53ecbe232c929b32ea38
treedb1bccdde98a969608e63edde8cec712cdafea68
parent930944833550ff36c0154d8e18a410d158df26d7
clk: sunxi-ng: sun8i-r: Use local parent references for CLK_HW_INIT_*

With the new clk parenting code and CLK_HW_INIT_* macros, we can
reference parents locally via pointers to struct clk_hw or DT
clock-names.

Convert existing CLK_HW_INIT_* definitions to describe parents using
either struct clk_hw pointers or clock-names from the device tree
binding.

For the AR100, this also allows us to merge the generic AR100 and the
A83T specific one, which only differed in the global clock names for
their parent clocks. The device tree bindings used the same name
specifiers.

Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
drivers/clk/sunxi-ng/ccu-sun8i-r.c