From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Warren Date: Mon, 18 Jul 2016 10:23:37 -0600 Subject: [U-Boot] [PATCH 1/4] dm: clk: Add a way to find a clock by its driver In-Reply-To: <1468790598-21133-1-git-send-email-sjg@chromium.org> References: <1468790598-21133-1-git-send-email-sjg@chromium.org> Message-ID: <578D0289.3030802@wwwdotorg.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 07/17/2016 03:23 PM, Simon Glass wrote: > Some SoCs have a single clock device. Provide a way to find it given its > driver name. This is handled by the linker so will fail if the name is not > found, avoiding strange errors when names change and do not match. It is > also faster than a string comparison. The code looks plausible, but the commit subject and description imply this has something to do with clocks, whereas it doesn't; it seems to be a generic/core DM function.