Re: [PATCH v2 2/2] iio: adc: ti-ads112c04: Add support for TI ADS112C04

From: David Lechner

Date: Fri Jul 31 2026 - 11:20:00 EST


On 7/31/26 9:54 AM, David Lechner wrote:
> On 7/30/26 9:58 PM, Kyle Hsieh wrote:
>> Add IIO driver support for the Texas Instruments ADS112C04 (16-bit)
>> delta-sigma ADCs.
>>

...

>> + st->config0 = 0x01;
>
> Needs a macro and FIELD_PREP().

Correction: This one is a bit, so FIELD_PREP() is not needed.

>
> Also, since we are parsing channels now, can/should we leave PGA enabled
> for diff-channels? Otherwise add a comment explaining current choice.
>