From: Andy Shevchenko <andriy.shevchenko@intel.com>
To: Matti Vaittinen <mazziesaccount@gmail.com>
Cc: "Matti Vaittinen" <matti.vaittinen@fi.rohmeurope.com>,
"Matti Vaittinen" <matti.vaittinen@linux.dev>,
"Jonathan Cameron" <jic23@kernel.org>,
"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>,
linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 4/4] bd79703: Support ROHM BD7971x DACs
Date: Fri, 4 Dec 2026 11:39:20 +0200 [thread overview]
Message-ID: <axKKSJISMUufIzFA@ashevche-desk.local> (raw)
In-Reply-To: <5a147154-c37e-4438-86b6-2e4639781f4e@gmail.com>
On Fri, Dec 04, 2026 at 07:58:30AM +0200, Matti Vaittinen wrote:
> On 03/12/2026 19:09, Andy Shevchenko wrote:
> > On Wed, Dec 02, 2026 at 03:39:21PM +0200, Matti Vaittinen wrote:
...
> > > + unsigned int tmp = val;
> >
> > This signed->unsigned trick begs for a comment. It's quite easy to miss and
> > someone might introduce some issues due to that.
>
> I was a bit unsure whether to do this or not. With the data-sizes these DACs
> use, this assignment shouldn't really be needed. Still, leaving shifting to
> be done with signed int felt a bit error prone, in case things change. If
> you agree the assignment to unsigned makes sense, then I suppose adding a
> comment is good idea.
Yes, I agree.
--
With Best Regards,
Andy Shevchenko
next prev parent reply other threads:[~2026-12-04 9:39 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 13:38 [PATCH 0/4] Support ROHM BD7971x family of DACs Matti Vaittinen
2026-12-02 13:38 ` [PATCH 1/4] dt-bindings: iio: bd79703: Fix VFS explanation Matti Vaittinen
2026-12-02 13:38 ` [PATCH 2/4] dt-bindings: iio: dac: Add ROHM BD7971x Matti Vaittinen
2026-12-02 18:05 ` Conor Dooley
2026-12-03 6:54 ` Matti Vaittinen
2026-12-03 8:35 ` Conor Dooley
2026-12-03 9:03 ` Matti Vaittinen
2026-12-03 12:10 ` Matti Vaittinen
2026-12-03 16:36 ` Conor Dooley
2026-12-04 5:52 ` Matti Vaittinen
2026-12-02 13:39 ` [PATCH 3/4] iio: dac: rohm-bd79703: Avoid copying chip-data Matti Vaittinen
2026-12-03 17:10 ` Andy Shevchenko
2026-12-02 13:39 ` [PATCH 4/4] bd79703: Support ROHM BD7971x DACs Matti Vaittinen
2026-12-03 17:09 ` Andy Shevchenko
2026-12-04 5:58 ` Matti Vaittinen
2026-12-04 9:39 ` Andy Shevchenko [this message]
2026-12-06 0:21 ` Jonathan Cameron
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=axKKSJISMUufIzFA@ashevche-desk.local \
--to=andriy.shevchenko@intel.com \
--cc=andy@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dlechner@baylibre.com \
--cc=jic23@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=matti.vaittinen@fi.rohmeurope.com \
--cc=matti.vaittinen@linux.dev \
--cc=mazziesaccount@gmail.com \
--cc=nuno.sa@analog.com \
--cc=robh@kernel.org \
/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
all inboxes | Powered by JetHome®