commit | 2796af7368acab27a6f9141cecba78106891f1bf | [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 | 4aa78300a025b7e09aa8e902b2178b1870ef1ec5 [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>