[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CACRpkdbTissSRyJ5uh8X6RFTM+VSSML-JmtOC_i8_UY0VTVRAA@mail.gmail.com>
Date: Thu, 19 Dec 2019 22:41:19 +0100
From: Linus Walleij <linus.walleij@...aro.org>
To: Andy Shevchenko <andy.shevchenko@...il.com>
Cc: Dan Robertson <dan@...obertson.com>,
Jonathan Cameron <jic23@...nel.org>,
linux-iio <linux-iio@...r.kernel.org>,
Peter Meerwald-Stadler <pmeerw@...erw.net>,
devicetree <devicetree@...r.kernel.org>,
Hartmut Knaack <knaack.h@....de>,
Rob Herring <robh+dt@...nel.org>,
Mark Rutland <mark.rutland@....com>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Randy Dunlap <rdunlap@...radead.org>,
Joe Perches <joe@...ches.com>
Subject: Re: [PATCH v7 3/3] iio: (bma400) basic regulator support
On Thu, Dec 19, 2019 at 12:06 PM Andy Shevchenko
<andy.shevchenko@...il.com> wrote:
> On Thu, Dec 19, 2019 at 6:28 AM Dan Robertson <dan@...obertson.com> 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
Powered by blists - more mailing lists