Re: [PATCH 2/2] iio: adc: add ltc2387 driver
From: Nicolae-Daniel Deaconescu
Date: Fri Oct 30 2026 - 09:25:22 EST
On Wed, 28 Oct 2026 02:39:19 +0000, Jonathan Cameron wrote:
> > + /* Gain * 1000 when adi,gain-milli is absent; unity for the bare parts. */
> Gain / 1000? If its in units of milli.
> For the unity parts why 0?
The value is stored as gain * 1000, so a gain of 2 is 2000. I'll reword
the comment to say that.
The bare LTC2387-16 and -18 use 1000, which is unity. Only the ADAQ23876
and ADAQ23878 use 0: their gain is pin-strapped, so there is no default
and adi,gain-milli is required. In v2 the comment will say so, and probe
will fail if the property is missing.
Thanks,
Daniel