diff options
author | Lukasz Majewski <lukma@denx.de> | 2019-06-24 15:50:40 +0200 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2019-07-19 14:50:30 +0200 |
commit | 36bac0a193d4cf37ca9c482567bc72012c1299b5 (patch) | |
tree | da549a108412bdd11158f3d08ccd5c4064ca3519 /common | |
parent | a8592cdd5150ad3766db9e2d738db53a4422bc4e (diff) |
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>
Diffstat (limited to 'common')
0 files changed, 0 insertions, 0 deletions