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

Jerome Brunet jbrunet at baylibre.com
Thu Jul 25 07:41:15 PDT 2019


On Mon 22 Jul 2019 at 11:50, Alexandre Mergnat <amergnat at baylibre.com> 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,
>  	},



More information about the linux-amlogic mailing list