Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2439274ybl; Thu, 19 Dec 2019 13:43:01 -0800 (PST) X-Google-Smtp-Source: APXvYqyr4bijmwtLKW3Ec0lAfEg08lhlSMcOGY/yJx2VeE8OgZqKCoGyQv/9f85MaJiqeJzpEOp5 X-Received: by 2002:a05:6830:158:: with SMTP id j24mr11263702otp.316.1576791781259; Thu, 19 Dec 2019 13:43:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576791781; cv=none; d=google.com; s=arc-20160816; b=F64BkxPMC+WfdiRujQEZu5AFIPsB/yj6h3CNp18fmYJIL9obm0JDzYPPJKcT0PytIe YAvJm3m0736G3j+/d8EmAcxWOF9xTZbRHpcV+D7w4I0+Dtt5MI5t8QRYAQW7Z59IFdq0 bepoaYB/LvWBwMQCsFZKg8EbXxAl8yaI5qwZKqcMFaUEjXXCwBeKM/oVrh8gPSV/cM9k r0MHp34Kf74fGM4R76TbPLF84hdheB4rh+D/PwlneL6m9O4aA7JjbqnDHjFG8VaLitbR 0cEzpHtyTI38W5O6SJjXUT+wYEHdslmZ8oNNY6UxuWyEMDvl4Cjwvyqxa2HEi/YdNYF1 VERA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=ASudMKT9RvM8+uOEJ+om2HEpPLO01yunBeLwD2PFAJc=; b=ScmppR6K7bWSrLy8A/os9Gz7gg2UarEyW0OmPFkOTytuHL1hPXXu59Zb+TrihL+RR8 /EmsN/Kq1qgxSxva0NvmVfwaIUd1MlHDtweePQ0Suv3l1cSmpBLh8bVPlXGH0GamS9EX 1m/ZsHNtJmQ7rrKSoEFi99UZw7DelkVxjGMjuLKutG6duv55NV3ZUJTWBlmRJfA+g64Y +ij96smHluoXWXWbb6lp84x6e35pQaRpslhwfov/LTgvXQU6/vx7RWqO26y5JxWfFWUu wiocHr9itK31YY48nGVJ4EMFf6KSmBz2jY5zcuTdpS5cCRide9yUVe3ZKO3G/unwKOre +Sgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UXcQVrIG; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w131si3505967oie.47.2019.12.19.13.42.48; Thu, 19 Dec 2019 13:43:01 -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; dkim=pass header.i=@linaro.org header.s=google header.b=UXcQVrIG; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727270AbfLSVlc (ORCPT + 99 others); Thu, 19 Dec 2019 16:41:32 -0500 Received: from mail-lj1-f195.google.com ([209.85.208.195]:40746 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726873AbfLSVlc (ORCPT ); Thu, 19 Dec 2019 16:41:32 -0500 Received: by mail-lj1-f195.google.com with SMTP id u1so7827033ljk.7 for ; Thu, 19 Dec 2019 13:41:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ASudMKT9RvM8+uOEJ+om2HEpPLO01yunBeLwD2PFAJc=; b=UXcQVrIGeuZxPW+wBt70BmOeFM34wTHIaDD0QSufDB+hpWy60xAnbwPJzGMxZPXXTh Bvo8xVwa12ZkQ98lNPHyUhNhqkyPhh0MIfsaBBppOcWPWZTk2unZdTF49txMzJY3pHCD YxHDMEoyLpEkPOpdFmf/K3MonB5D7tmCbAN8kHT74gEBRwDcUB8IFxHMaMXJw7WUtcz3 +XHy8aT9jY6xESdx5KtiAOTv1zlbyPbECB2s9vvieBjnb2sKKBAWjoVIOiF0jHW9D+FO hbJU/6H/5NVBmZHwpJjIPmmCajp+Vkm1VSI5ttRddK13sa9OsU5HRyIcUFtY30Eo5+Tf ZKSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ASudMKT9RvM8+uOEJ+om2HEpPLO01yunBeLwD2PFAJc=; b=Y5nZNqb5+dtLlNFda1xcPMijn17sPE8efZKr1i3xdDrYSzJEz5R8f6kwasoG55R5iu dHTbR6sBDTBVZcQ6RdYul+IOhRDlZqx3h07u4wLxM6OYwfxPwqGq9Y8KGa7rdP+85lFr GepwT05BIJjdImTE1/5+A2nRQhbf0kBi0BmCJLR5KMchiWHZvJQc8k9cDdN/2z4rbKY8 SOl4M+b3A7eyIDJb8Z9kDLRQjqIsSVXhwMNyJwy7y87hUIvmfJw+HwjT3U0eBb6uf+zL +mIVOEpcuV42XEHOuyf37KIrzwUzNGb0mX0bH92f75J0Ox5q/OO0NVcwAUowf0nZG0y+ UpHw== X-Gm-Message-State: APjAAAVXahlfCVnyhpnHnuMCeD1d4NRssF54Osfo/8wKd+f36v50lzPs vVYANOlOmxCpeCUU25Kh4d88lchc9iBO5m9MRz5QIg== X-Received: by 2002:a2e:9ec4:: with SMTP id h4mr7762896ljk.77.1576791690711; Thu, 19 Dec 2019 13:41:30 -0800 (PST) MIME-Version: 1.0 References: <20191219041039.23396-1-dan@dlrobertson.com> <20191219041039.23396-4-dan@dlrobertson.com> In-Reply-To: From: Linus Walleij Date: Thu, 19 Dec 2019 22:41:19 +0100 Message-ID: Subject: Re: [PATCH v7 3/3] iio: (bma400) basic regulator support To: Andy Shevchenko Cc: Dan Robertson , Jonathan Cameron , linux-iio , Peter Meerwald-Stadler , devicetree , Hartmut Knaack , Rob Herring , Mark Rutland , Linux Kernel Mailing List , Randy Dunlap , Joe Perches Content-Type: text/plain; charset="UTF-8" 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 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 :) Linus Walleij