Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3337347ybl; Fri, 20 Dec 2019 07:41:19 -0800 (PST) X-Google-Smtp-Source: APXvYqwfLRZg9CRNa552O3miM2JRHvhJboMm8RkJ1KLrbJR8hUU+brzRC3RjLaAtJPmFa3wJ2FOM X-Received: by 2002:aca:5658:: with SMTP id k85mr2183746oib.153.1576856478766; Fri, 20 Dec 2019 07:41:18 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1576856478; cv=pass; d=google.com; s=arc-20160816; b=A2AVGcTPT7XkrcuSx8rpP9rpGeAqj1xtCIzGwv2nITjjlBoFvHZQpSM0U4Sbka147q 6vpAxE/i6RonuYDvmd7Fx8AtA5C5B1SK/J75tExcba2WbVqWropEPV2MddOdjY31FDyX uwqiz/hnO6iq9UUsxOo31Tu4KffoE09X8O5YRHjhAzqBiBPfbx9fgDV1BudX0Fn6kMwQ CIX5eXanyUB4fKKmEWEZzIrhxNFDa22VslvUXCN+2thaJEuL9vKPQcAjH0s8lDpcXa07 eLp/lKuUONxyQV0dKi+SKBUNin8UJ2IUltJVrvCj5uBP6qrTlf++bVkDpSNNsmVsJsSI i2cg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=jGAXoe+RtUEJhHVG4fzxyeeTaAMDlemfjZegvpM3sN8=; b=SpZQXm0r4CC7HwURJxQsfsHvNf5K4inQqFzbf19/dHOKhgea4lEb77EAD/1xMd6lVN g2x8qvrJTeBq9JwRm7xPuXIsjxlo4/R5dknexsoNSi+YFT+R0GW589qmcIlt8XolsrK2 hD7RrPO7rjX+6E5c6EJaK99OS8EORy9341hGDK6jeK5vuONc1kx8OV/NnnPTdnTIbBIX ZN6CQswT9fsBLA/SayM8rbnFjXswljZYhlmA39ZP0eNdUPPaoWTs8AU9QMzlDJuSUuw+ l57kiJ3Qf3CwjY2SacWRK2dQsu47E5j3SpOU+fLNgpgHuNUetYYAxYCRna/4ycj/O1gh 0YRQ== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=dlrobertson.com dkim=pass dkdomain=dlrobertson.com dmarc=pass fromdomain=dlrobertson.com>); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q124si4559911oig.228.2019.12.20.07.41.06; Fri, 20 Dec 2019 07:41:18 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=dlrobertson.com dkim=pass dkdomain=dlrobertson.com dmarc=pass fromdomain=dlrobertson.com>); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727555AbfLTPi7 (ORCPT + 99 others); Fri, 20 Dec 2019 10:38:59 -0500 Received: from sender4-op-o11.zoho.com ([136.143.188.11]:17104 "EHLO sender4-op-o11.zoho.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726808AbfLTPi7 (ORCPT ); Fri, 20 Dec 2019 10:38:59 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1576856324; cv=none; d=zohomail.com; s=zohoarc; b=ete8nDfbjMemKuv3U1vyPbsLah+80GDIki/Ssl0DHwBEgQ67nsi31XHbzSdZjLXxLrVLn1VdPm/cb6M8D2Wa83ZS218ka1g0TCzKJD3M07dqiTVkP8rVg5AOhwr8CPlD4NjH1jsaG/0gv4NDRk0r0i4XhTtzmf/ZAUXEn/1pfjE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1576856324; h=Content-Type:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=jGAXoe+RtUEJhHVG4fzxyeeTaAMDlemfjZegvpM3sN8=; b=i+F4ra6ORh/ecCvorhhQponAjEmkVa2WQUiZb0k7wwH1bp4IvSc4WJ2W9sZIBssQ7bdh22ae2x3dm/729vW+JLuoSf+BRNVY3mVTghQDy3djvYbIqedckYeGCBNIgzsMLzdEu8rXI+Nfa8Q9Eba+LJ12x9qj0KYy2kyGeoLt5Jg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=dlrobertson.com; spf=pass smtp.mailfrom=dan@dlrobertson.com; dmarc=pass header.from= header.from= Received: from nessie (pool-173-73-58-202.washdc.fios.verizon.net [173.73.58.202]) by mx.zohomail.com with SMTPS id 157685632244183.04042224278498; Fri, 20 Dec 2019 07:38:42 -0800 (PST) Date: Fri, 20 Dec 2019 15:23:10 +0000 From: Dan Robertson To: Linus Walleij Cc: Andy Shevchenko , Jonathan Cameron , linux-iio , Peter Meerwald-Stadler , devicetree , Hartmut Knaack , Rob Herring , Mark Rutland , Linux Kernel Mailing List , Randy Dunlap , Joe Perches Subject: Re: [PATCH v7 3/3] iio: (bma400) basic regulator support Message-ID: <20191220152310.GC16415@nessie> References: <20191219041039.23396-1-dan@dlrobertson.com> <20191219041039.23396-4-dan@dlrobertson.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-ZohoMailClient: External Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 19, 2019 at 10:41:19PM +0100, Linus Walleij wrote: > On Thu, Dec 19, 2019 at 12:06 PM Andy Shevchenko > wrote: > > On Thu, Dec 19, 2019 at 6:28 AM Dan Robertson wrote: > > > > > > Add support for the VDD and VDDIO regulators using the regulator > > > framework. > > ... > > > > > + data->vdd_supply = devm_regulator_get(data->dev, "vdd"); > > > > > + data->vddio_supply = devm_regulator_get(data->dev, "vddio"); > > > > devm_regulator_bulk_get() ? > > I always thought to use regulator_bulk* maybe 3 regulators and > definitely for more that 4 as it also clouds the view bit and is not > as straightforward to read as the single functions, but I suppose > it is a bit subjective :) I tend to agree, but I think in this case it will at least simplify the goto's. Cheers, - Dan