Re: [U-Boot] [i.MX8MM+CCF 01/41] clk: correct get clk_x pointer

2019-05-06 Thread Lukasz Majewski
Hi Peng, > Directly use driver data is wrong, need to the helper to get > the correct clk_divider and etc I just followed the kernel approach. This works as the address of first element of struct clk_XXX is always struct clk clk address; But yes, this may be the preferred (more readable)

[U-Boot] [i.MX8MM+CCF 01/41] clk: correct get clk_x pointer

2019-04-30 Thread Peng Fan
Directly use driver data is wrong, need to the helper to get the correct clk_divider and etc Signed-off-by: Peng Fan --- drivers/clk/clk-divider.c | 2 +- drivers/clk/imx/clk-gate2.c | 4 ++-- drivers/clk/imx/clk-pfd.c | 2 +- drivers/clk/imx/clk-pllv3.c | 2 +- 4 files changed, 5