From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752384AbbFFBLv (ORCPT ); Fri, 5 Jun 2015 21:11:51 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:51913 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751429AbbFFBLs (ORCPT ); Fri, 5 Jun 2015 21:11:48 -0400 Date: Fri, 5 Jun 2015 18:11:45 -0700 From: Stephen Boyd To: dinguyen@opensource.altera.com Cc: mturquette@linaro.org, dinh.linux@gmail.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCHv3 1/2] clk: of: helper for filling parent clock array and return num of parents Message-ID: <20150606011145.GD29237@codeaurora.org> References: <1433521574-31052-1-git-send-email-dinguyen@opensource.altera.com> <1433521574-31052-2-git-send-email-dinguyen@opensource.altera.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1433521574-31052-2-git-send-email-dinguyen@opensource.altera.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/05, dinguyen@opensource.altera.com wrote: > From: Dinh Nguyen > > Sprinkled all through the platform clock drivers are code like this to > fill the clock parent array: > > for (i = 0; i < num_parents; ++i) > parent_names[i] = of_clk_get_parent_name(np, i); > > The of_clk_parent_fill() will do the same as the code above, and while > at it, return the number of parents as well since the logic of the > function is to the walk the clock node to look for the parent. > > Signed-off-by: Dinh Nguyen > --- Applied to clk-next with some small kernel-doc fixes. -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project