From: Jonathan Cameron <jonathan.cameron@huawei.com>
To: Matti Vaittinen <mazziesaccount@gmail.com>
Cc: "Andy Shevchenko" <andy.shevchenko@gmail.com>,
"Jonathan Cameron" <jic23@kernel.org>,
"Matti Vaittinen" <matti.vaittinen@fi.rohmeurope.com>,
"David Lechner" <dlechner@baylibre.com>,
"Nuno Sá" <nuno.sa@analog.com>,
"Andy Shevchenko" <andy@kernel.org>,
"Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Linus Walleij" <linus.walleij@linaro.org>,
"Bartosz Golaszewski" <brgl@bgdev.pl>,
"Marcelo Schmitt" <marcelo.schmitt@analog.com>,
"Javier Carrasco" <javier.carrasco.cruz@gmail.com>,
"Tobias Sperling" <tobias.sperling@softing.com>,
"Antoniu Miclaus" <antoniu.miclaus@analog.com>,
"Trevor Gamblin" <tgamblin@baylibre.com>,
"Esteban Blanc" <eblanc@baylibre.com>,
"Ramona Alexandra Nechita" <ramona.nechita@analog.com>,
"Hans de Goede" <hansg@kernel.org>,
"Herve Codina" <herve.codina@bootlin.com>,
"Alisa-Dariana Roman" <alisadariana@gmail.com>,
linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org
Subject: Re: [PATCH v3 2/3] iio: adc: Support ROHM BD79112 ADC/GPIO
Date: Tue, 9 Sep 2025 17:24:59 +0100 [thread overview]
Message-ID: <20250909172459.0000171e@huawei.com> (raw)
In-Reply-To: <de6b31ec-7a5a-43a1-b352-2b46055a1a23@gmail.com>
On Mon, 8 Sep 2025 08:10:11 +0300
Matti Vaittinen <mazziesaccount@gmail.com> wrote:
> On 07/09/2025 23:55, Andy Shevchenko wrote:
> > On Sun, Sep 7, 2025 at 2:42 PM Jonathan Cameron <jic23@kernel.org> wrote:
> >> On Fri, 5 Sep 2025 09:42:31 +0300
> >> Matti Vaittinen <mazziesaccount@gmail.com> wrote:
> >
> > ...
> >
> >>> +/* ADC channels as named in the data-sheet */
> >>> +static const char * const bd79112_chan_names[] = {
> >>> + "AGIO0A", "AGIO1A", "AGIO2A", "AGIO3A", "AGIO4A", /* 0 - 4 */
> >>> + "AGIO5A", "AGIO6A", "AGIO7A", "AGIO8A", "AGIO9A", /* 5 - 9 */
> >>> + "AGIO10A", "AGIO11A", "AGIO12A", "AGIO13A", "AGIO14A", /* 10 - 14 */
> >>> + "AGIO15A", "AGIO0B", "AGIO1B", "AGIO2B", "AGIO3B", /* 15 - 19 */
> >>> + "AGIO4B", "AGIO5B", "AGIO6B", "AGIO7B", "AGIO8B", /* 20 - 24 */
> >>> + "AGIO9B", "AGIO10B", "AGIO11B", "AGIO12B", "AGIO13B", /* 25 - 29 */
> >>> + "AGIO14B", "AGIO15B", /* 30 - 31 */
> >>> +};
> >>
> >>> + /* Let's assign data-sheet names to channels */
> >> Not seeing any value in this comment given the code that follows.
> >> Probably drop it
> >
> > It was my suggestion. I don't know if you noticed that the amount of> the values is *not* power-of-two and it's harder to find a needed
> > value in the list. Moreover, you can read the discussion back and find
> > that actually it was a mistake in the list, which can be avoided (or
> > chances of which will be minimized) in the first place if we see the
> > comments.
>
> I believe Jonathan meant the:
> >>> +/* ADC channels as named in the data-sheet */
>
> not the "index comments". And I kinda agree with him, that's not adding
> too much. I'll drop that as suggested.
>
Yeah. I like the index comments - though less necessary if power of 2
as you say.
Jonathan
> Yours,
> -- Matti
>
next prev parent reply other threads:[~2025-09-09 16:25 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-05 6:41 [PATCH v3 0/3] Support ROHM BD79112 ADC Matti Vaittinen
2025-09-05 6:42 ` [PATCH v3 1/3] dt-bindings: iio: adc: ROHM BD79112 ADC/GPIO Matti Vaittinen
2025-09-05 8:10 ` Linus Walleij
2025-09-07 11:19 ` Jonathan Cameron
2025-09-07 12:37 ` Matti Vaittinen
2025-09-05 6:42 ` [PATCH v3 2/3] iio: adc: Support " Matti Vaittinen
2025-09-05 6:54 ` Andy Shevchenko
2025-09-05 7:10 ` Matti Vaittinen
2025-09-05 12:53 ` Andy Shevchenko
2025-09-07 11:33 ` Jonathan Cameron
2025-09-07 11:42 ` Jonathan Cameron
2025-09-07 20:55 ` Andy Shevchenko
2025-09-08 5:10 ` Matti Vaittinen
2025-09-09 16:24 ` Jonathan Cameron [this message]
2025-09-08 20:01 ` kernel test robot
2025-09-05 6:42 ` [PATCH v3 3/3] MAINTAINERS: Support ROHM BD79112 ADC Matti Vaittinen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250909172459.0000171e@huawei.com \
--to=jonathan.cameron@huawei.com \
--cc=alisadariana@gmail.com \
--cc=andy.shevchenko@gmail.com \
--cc=andy@kernel.org \
--cc=antoniu.miclaus@analog.com \
--cc=brgl@bgdev.pl \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dlechner@baylibre.com \
--cc=eblanc@baylibre.com \
--cc=hansg@kernel.org \
--cc=herve.codina@bootlin.com \
--cc=javier.carrasco.cruz@gmail.com \
--cc=jic23@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marcelo.schmitt@analog.com \
--cc=matti.vaittinen@fi.rohmeurope.com \
--cc=mazziesaccount@gmail.com \
--cc=nuno.sa@analog.com \
--cc=ramona.nechita@analog.com \
--cc=robh@kernel.org \
--cc=tgamblin@baylibre.com \
--cc=tobias.sperling@softing.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).