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 3/4] iio: dac: rohm-bd79703: Avoid copying chip-data
Date: Thu, 3 Dec 2026 19:10:26 +0200 [thread overview]
Message-ID: <axGigi8EJnpqV17D@ashevche-desk.local> (raw)
In-Reply-To: <e6f29d1688fb1c567fa0d05533698095ecd8df2b.1796049052.git.mazziesaccount@gmail.com>
On Wed, Dec 02, 2026 at 03:39:08PM +0200, Matti Vaittinen wrote:
>
> The bd79703 driver data has been divided into a static, chip specific
> data, and to an instance specific data, which can be modified at run-time.
>
> At the moment, only the instance-specific data is usable after probe,
> and only chip-type dependent constant 'num_vfs_chan', is copied to
> instance-specific struct.
>
> Upcoming support for bd7971x family of chips will introduce a need to
> use a few more chip-specific static values at runtime. Copying them to
> dynamic private data struct would get wasteful.
>
> Save some bytes and minimize data copying by storing a pointer to the
> constant, chip-type specific data, instead of copying all the values into
> the instance specific data.
Despite our discussion about SI unit suffices, this looks good.
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
--
With Best Regards,
Andy Shevchenko
next prev parent reply other threads:[~2026-12-03 17:10 UTC|newest]
Thread overview: 13+ 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-02 13:39 ` [PATCH 3/4] iio: dac: rohm-bd79703: Avoid copying chip-data Matti Vaittinen
2026-12-03 17:10 ` Andy Shevchenko [this message]
2026-12-02 13:39 ` [PATCH 4/4] bd79703: Support ROHM BD7971x DACs Matti Vaittinen
2026-12-03 17:09 ` Andy Shevchenko
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=axGigi8EJnpqV17D@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