clk: sunxi-ng: a10: Use local parent references for CLK_FIXED_FACTOR
authorChen-Yu Tsai <wens@csie.org>
Fri, 3 May 2019 10:02:31 +0000 (18:02 +0800)
committerChen-Yu Tsai <wens@csie.org>
Tue, 18 Jun 2019 11:39:00 +0000 (19:39 +0800)
commitd1c924732bdf2710ce513d965d3ca2a4ff877ea7
treeb647e024f8b663a3e94f9401090e515b39568f16
parent6873d20726563c5ee54b53ecbe232c929b32ea38
clk: sunxi-ng: a10: 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-sun4i-a10.c