From: sbabic at denx.de Date: Sat, 20 Jul 2019 08:57:16 +0000 (UTC) Subject: [U-Boot] [PATCH v5 10/18] dm: clk: Define clk_get_by_id() for clk operations In-Reply-To: <20190624135052.2699-11-lukma@denx.de> Message-ID: <20190720091202.C6590C21DB5@lists.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > 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 > Reviewed-by: Peng Fan Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- ===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================