[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <8afb3d94-336c-4e33-a73b-fc690f287556@sirena.org.uk>
Date: Wed, 26 Feb 2025 11:35:27 +0000
From: Mark Brown <broonie@...nel.org>
To: "Torreno, Alexis Czezar" <AlexisCzezar.Torreno@...log.com>
Cc: Liam Girdwood <lgirdwood@...il.com>, Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>
Subject: Re: [PATCH 2/2] regulator: adp5055: Add driver for adp5055
On Wed, Feb 26, 2025 at 02:24:58AM +0000, Torreno, Alexis Czezar wrote:
> > > +// SPDX-License-Identifier: GPL-2.0
> > > +/*
> > > + * Regulator driver for Analog Devices ADP5055
> > > + *
> > > + * Copyright (C) 2025 Analog Devices, Inc.
> > > + */
> > Please make the entire comment block a C++ one so things look more
> > intentional.
> Am not familiar with this, is this where each line use // rather than /**/?
Yes.
> > > +static int adp5055_en_func(struct regulator_dev *dev, int en_val) {
> > > + struct adp5055 *adp5055 = rdev_get_drvdata(dev);
> > Just use the standard GPIO and regmap helpers for this.
> Confused on this, I thought these were standard 'regmap_update_bits' and
> 'gpiod_set_value_cansleep'
You've open coded the operations instead of using the framework helpers,
you shouldn't need to anything other than supply data here.
Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)
Powered by blists - more mailing lists