Re: [U-Boot] [PATCH v3 05/11] clk: Provide struct clk for fixed rate clock (clk_fixed_rate.c)

2019-04-25 Thread Peng Fan
> Subject: [PATCH v3 05/11] clk: Provide struct clk for fixed rate clock > (clk_fixed_rate.c) > > Up till now the fixed rate clock ('osc') has been added to UCLASS_CLK without > declaring struct clk. As a result it was only accessible by iterating the > udevice's uclass list. > > This is a proble

[U-Boot] [PATCH v3 05/11] clk: Provide struct clk for fixed rate clock (clk_fixed_rate.c)

2019-04-25 Thread Lukasz Majewski
Up till now the fixed rate clock ('osc') has been added to UCLASS_CLK without declaring struct clk. As a result it was only accessible by iterating the udevice's uclass list. This is a problem for clock code, which operates on pointers to struct clk (like clk_get_rate()), not udevices. After this