From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thierry Reding Subject: Re: [PATCH 05/11] tps6586x: Add device-tree support Date: Thu, 8 Mar 2012 16:45:03 +0100 Message-ID: <20120308154502.GA4617@avionic-0098.mockup.avionic-design.de> References: <1331218291-16119-1-git-send-email-thierry.reding@avionic-design.de> <1331218291-16119-6-git-send-email-thierry.reding@avionic-design.de> <20120308150607.GP3638@opensource.wolfsonmicro.com> <20120308151545.GA23934@avionic-0098.mockup.avionic-design.de> <20120308151756.GQ3638@opensource.wolfsonmicro.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jRHKVT23PllUwdXP" Return-path: Content-Disposition: inline In-Reply-To: <20120308151756.GQ3638@opensource.wolfsonmicro.com> Sender: linux-pci-owner@vger.kernel.org To: Mark Brown Cc: linux-tegra@vger.kernel.org, Liam Girdwood , Jesse Barnes , linux-pci@vger.kernel.org, Grant Likely , Rob Herring , devicetree-discuss@lists.ozlabs.org, Russell King , linux-arm-kernel@lists.infradead.org, Colin Cross , Olof Johansson List-Id: linux-tegra@vger.kernel.org --jRHKVT23PllUwdXP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Mark Brown wrote: > On Thu, Mar 08, 2012 at 04:15:46PM +0100, Thierry Reding wrote: > > * Mark Brown wrote: >=20 > > > ...they all seem to be explicitly named in the device tree so presuma= bly > > > there's enough information in there for the driver to pick any set of > > > regulators in any order. This would be much nicer to use. >=20 > > I don't like it much either. The only reason that requirement exists is > > because it makes the assignment of the regulator ID (as defined in the > > include/linux/mfd/tps6586x.h header) very trivial. Would it be better to > > look up the ID based on the node name (sm0 --> TPS6586X_ID_SM_0, ...)? >=20 > > Then the only requirement would be that the names match. >=20 > Yes, that's going to be more code but much nicer for users. Okay, I'll add that for the next round. Thierry --jRHKVT23PllUwdXP Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAk9Y0/4ACgkQZ+BJyKLjJp/XWACfSbtn+4tz2T6Ecd04OpaxGvGO 7KgAoIkY9l7mkfZBVXw9wM5y8bPWcz6l =e97C -----END PGP SIGNATURE----- --jRHKVT23PllUwdXP--