clk: sunxi-ng: a64: Use local parent references for CLK_FIXED_FACTOR
authorChen-Yu Tsai <wens@csie.org>
Fri, 3 May 2019 10:09:33 +0000 (18:09 +0800)
committerChen-Yu Tsai <wens@csie.org>
Sat, 22 Jun 2019 02:13:16 +0000 (10:13 +0800)
commitecd73c04b3e81aa8c14828c0a55f1e9a62e173d6
treec9b093107a575a2f1a1c344427d215008e2f7877
parent4d34497ee458482efdcb80fc55250ba5d6484eb6
clk: sunxi-ng: a64: Use local parent references for CLK_FIXED_FACTOR

With the new clk parenting code and CLK_FIXED_FACTOR_{HW,FW_NAME}
macros, we can reference parents locally via pointers to struct clk_hw
or DT clock-names.

Convert existing CLK_FIXED_FACTOR definitions to either the _HW or
_FW_NAME variant based on whether the parent clock is internal or
external to the CCU.

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