commit | 12014be13fa460589346e3ea69a58f00291aa17e | [log] [tgz] |
---|---|---|
author | Lukasz Majewski <lukma@denx.de> | Mon Jun 24 15:50:44 2019 +0200 |
committer | Stefano Babic <sbabic@denx.de> | Fri Jul 19 14:50:30 2019 +0200 |
tree | 46dc367d013f9617a3a794ba45a7f86242018184 | |
parent | 53155daa9f4020c04ba107cead6eab1ff62771dc [diff] |
dm: clk: Define clk_get_by_id() for clk operations This commit adds the clk_get_by_id() function, which is responsible for getting the udevice with matching clk->id. Such approach allows re-usage of inherit DM list relationship for the same class (UCLASS_CLK). As a result - we don't need any other external list - it is just enough to look for UCLASS_CLK related udevices. Signed-off-by: Lukasz Majewski <lukma@denx.de> Reviewed-by: Peng Fan <peng.fan@nxp.com>