From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932801AbdDGSoP (ORCPT ); Fri, 7 Apr 2017 14:44:15 -0400 Received: from mail-pg0-f47.google.com ([74.125.83.47]:33643 "EHLO mail-pg0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754489AbdDGSoL (ORCPT ); Fri, 7 Apr 2017 14:44:11 -0400 Date: Fri, 7 Apr 2017 11:44:09 -0700 From: Matthias Kaehlcke To: Mark Brown Cc: Liam Girdwood , Rob Herring , Mark Rutland , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Douglas Anderson , Brian Norris Subject: Re: [PATCH v3] regulator: Add driver for voltage controlled regulators Message-ID: <20170407184409.GD78690@google.com> References: <20170331205035.126001-1-mka@chromium.org> <20170406182136.yrwdoyqeuz4qxc6d@sirena.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20170406182136.yrwdoyqeuz4qxc6d@sirena.org.uk> 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 Hi Mark, Thanks for the review! El Thu, Apr 06, 2017 at 07:21:36PM +0100 Mark Brown ha dit: > On Fri, Mar 31, 2017 at 01:50:35PM -0700, Matthias Kaehlcke wrote: > > > +- compatible : must be "vctrl-regulator". > > +- regulator-min-microvolt : smallest voltage consumers may set > > +- regulator-max-microvolt : largest voltage consumers may set > > +- ctrl-regulator: : the name of the regulator supplying the control > > + voltage. > > This looks good except for this bit where we read the regulator name out > of the DT, that's generally a sign of bad practice for things that are > less simple passives than things like this or fixed voltage regulators. > As with the supplies for fixed voltage regulators just pick a name for > the supply (ctrl seems fine to me) and use that, neither option is > perfect but at elast this less typing for everyone and it's consistent > with what other similar things are already doing. Sounds good, I will send out an updated version shortly. Matthias