From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933070Ab2FEKba (ORCPT ); Tue, 5 Jun 2012 06:31:30 -0400 Received: from mail-ee0-f46.google.com ([74.125.83.46]:35862 "EHLO mail-ee0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932105Ab2FEKb3 (ORCPT ); Tue, 5 Jun 2012 06:31:29 -0400 Message-ID: <4FCDDFFC.3000902@linaro.org> Date: Tue, 05 Jun 2012 11:31:24 +0100 From: Lee Jones User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120410 Thunderbird/11.0.1 MIME-Version: 1.0 To: Mark Brown CC: Chris Ball , Linus Walleij , Bengt Jonsson , Mattias WALLIN , linux-arm-kernel@lists.infradead.org, sameo@linux.intel.com, grant.likely@secretlab.ca, linux-kernel@vger.kernel.org, arnd@arndb.de, Linus Walleij Subject: Re: [PATCH 08/22] regulator: Change ab8500 match names to reflect Device Tree References: <1338353260-10097-9-git-send-email-lee.jones@linaro.org> <20120530100302.GD9947@opensource.wolfsonmicro.com> <20120530121547.GJ9947@opensource.wolfsonmicro.com> <4FC63632.4030504@linaro.org> <20120530151119.GN9947@opensource.wolfsonmicro.com> <4FC63B39.6040905@linaro.org> <20120530164152.GP9947@opensource.wolfsonmicro.com> <4FC846CC.20801@linaro.org> <20120601084850.GJ24139@opensource.wolfsonmicro.com> In-Reply-To: <20120601084850.GJ24139@opensource.wolfsonmicro.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/06/12 09:48, Mark Brown wrote: > On Fri, Jun 01, 2012 at 12:36:28PM +0800, Lee Jones wrote: > >> This: > >>> sdi@80126000 { >>> vmmc-supply =<&ab8500_ldo_aux3_reg>; >>> }; > >> Is the same as, and will cause no more issues than: > >>> static struct regulator_consumer_supply ab8500_vaux3_consumers[] = { >>> REGULATOR_SUPPLY("vmmc", "sdi0"), >>> }; > >> ... because only nodes which we care about (dictated by compatible >> declaration protections) will be parsed. So different platforms will >> not affect each other. > > What makes you say the two are equivalent? The former is a reference > from a consumer device to a named regulator while the latter is a > reference from a regulator to a named consumer. I mean they both link regulator<->consumer and apply the name "vmmc" to the supply, or am I missing something / getting confused? -- Lee Jones Linaro ST-Ericsson Landing Team Lead M: +44 77 88 633 515 Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog