From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Boyd Subject: Re: [PATCH V2 Resend 1/5] PM / OPP: reuse of_parse_phandle() Date: Tue, 1 Sep 2015 15:48:07 -0700 Message-ID: <20150901224807.GA21112@codeaurora.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: Viresh Kumar Cc: Rafael Wysocki , linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, nm@ti.com, khilman@linaro.org, Greg Kroah-Hartman , Len Brown , open list , Pavel Machek List-Id: linux-pm@vger.kernel.org On 09/01, Viresh Kumar wrote: > We already have a better API to get the opp descriptor block's node from > cpu-node. Lets reuse that instead of creating our own routines for the > same stuff. That cleans the code a lot. > > This also kills a check we had earlier (as we are using the generic API > now). Earlier we used to check if the operating-points-v2 property > contained multiple phandles instead of a single phandle. > > Killing this check isn't an issue because, we only parse the first entry > with of_parse_phandle(). So, if a user passes multiple phandles, its > really his problem :) > > Signed-off-by: Viresh Kumar > --- Reviewed-by: Stephen Boyd -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project