clk: sunxi-ng: sun8i-r: Use local parent references for SUNXI_CCU_GATE
authorChen-Yu Tsai <wens@csie.org>
Fri, 3 May 2019 11:31:04 +0000 (19:31 +0800)
committerChen-Yu Tsai <wens@csie.org>
Sat, 22 Jun 2019 02:13:16 +0000 (10:13 +0800)
commit89f27fb2dd348d8d52a97e6ebec15c64fe461a25
treefd297faeb4c030cbfc88077bcad8c6c4dc105432
parent4b8891518466cd29fc5d451e46d4ab3c4e25bcf7
clk: sunxi-ng: sun8i-r: Use local parent references for SUNXI_CCU_GATE

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

Convert existing SUNXI_CCU_GATE definitions to SUNXI_CCU_GATE_HWS
as the parent clock is internal to this clock unit.

To avoid duplication of clock definitions, we fix up the parent
reference for A83T in the A83T init function.

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