clk: sunxi-ng: v3s: Use local parent references for CLK_FIXED_FACTOR
authorChen-Yu Tsai <wens@csie.org>
Fri, 3 May 2019 10:08:18 +0000 (18:08 +0800)
committerChen-Yu Tsai <wens@csie.org>
Tue, 18 Jun 2019 11:39:03 +0000 (19:39 +0800)
commit707f601373aeaf967579564c67ae9701c5e6b11e
tree1194e1727130e691426b1ef34b8cf5087f33c0f3
parent3fccf2ed6f27e314ba4965cf455347b53fdf8d6b
clk: sunxi-ng: v3s: 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-sun8i-v3s.c