Re: [PATCH 2/4] clk: meson: gxbb-aoclk: migrate to the new parent description method

From: Jerome Brunet
Date: Thu Jul 25 2019 - 14:07:21 EST


On Mon 22 Jul 2019 at 11:50, Alexandre Mergnat <amergnat@xxxxxxxxxxxx> wrote:

> @@ -208,8 +216,10 @@ static struct clk_regmap ao_cts_cec = {
> * Until CCF gets fixed, adding this fake parent that won't
> * ever be registered should work around the problem
> */
> - .parent_names = (const char *[]){ "fixme",
> - "ao_cts_rtc_oscin" },
> + .parent_data = (const struct clk_parent_data []) {
> + { .fw_name = "fixme", },

Hum, that would work I suppose but I'd prefer if used .name for this
work around. Remember to throw an '.index = -1' as well

> + { .hw = &ao_cts_rtc_oscin.hw },
> + },
> .num_parents = 2,
> .flags = CLK_SET_RATE_PARENT,
> },