From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rajendra Nayak Subject: Re: [PATCH 2/9] regulator: helper routine to extract regulator_init_data Date: Tue, 04 Oct 2011 17:10:00 +0530 Message-ID: <4E8AF090.4070304@ti.com> References: <1317118372-17052-3-git-send-email-rnayak@ti.com> <20110927121003.GB4289@opensource.wolfsonmicro.com> <4E81E224.2070408@ti.com> <20110927150511.GM4289@opensource.wolfsonmicro.com> <4E854532.6080605@ti.com> <20110930102849.GA4195@opensource.wolfsonmicro.com> <20110930104820.GE2085@sirena.org.uk> <4E85A34E.9070203@ti.com> <20110930121844.GI5366@opensource.wolfsonmicro.com> <4E8A9988.3080907@ti.com> <20111004101846.GD3250@opensource.wolfsonmicro.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from na3sys009aog105.obsmtp.com ([74.125.149.75]:36502 "EHLO na3sys009aog105.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755764Ab1JDLkU (ORCPT ); Tue, 4 Oct 2011 07:40:20 -0400 Received: by ywp17 with SMTP id 17so407249ywp.41 for ; Tue, 04 Oct 2011 04:40:08 -0700 (PDT) In-Reply-To: <20111004101846.GD3250@opensource.wolfsonmicro.com> Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: Mark Brown Cc: b-cousson@ti.com, patches@linaro.org, tony@atomide.com, devicetree-discuss@lists.ozlabs.org, grant.likely@secretlab.ca, linux-omap@vger.kernel.org, lrg@ti.com, linux-arm-kernel@lists.infradead.org On Tuesday 04 October 2011 03:48 PM, Mark Brown wrote: > On Tue, Oct 04, 2011 at 10:58:40AM +0530, Rajendra Nayak wrote: > >> The problem is I don't know if the property in the regulator dt >> node is called "vin-supply" or "vxyz-supply" and hence I >> can parse the property based on a substring alone, which is >> "-supply" because all I know is the property name is expected >> to end with a "-supply". > > This seems fairly straightforward though it will require some changes > within Linux, all we have to do is have the regulators name their > supplies. through dt? thats what the original bindings was doing.