]> git.baikalelectronics.ru Git - uboot.git/commit
clk: Provide struct clk for fixed rate clock (clk_fixed_rate.c)
authorLukasz Majewski <lukma@denx.de>
Mon, 24 Jun 2019 13:50:40 +0000 (15:50 +0200)
committerStefano Babic <sbabic@denx.de>
Fri, 19 Jul 2019 12:50:30 +0000 (14:50 +0200)
commitea04b4078d0ecb26d6dd5b7d00abefddc5f2a4b2
treeda549a108412bdd11158f3d08ccd5c4064ca3519
parent1d55eef1e07d9cf671458c94184356cbc5378538
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 problem for clock code, which operates on pointers to struct
clk (like clk_get_rate()), not udevices.

After this change struct clk is accessible from udevice and udevice from
struct clk.

Signed-off-by: Lukasz Majewski <lukma@denx.de>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
drivers/clk/clk_fixed_rate.c