Re: [PATCH v5 13/20] iio: adc: ad7768: Add calibration controls

From: Andy Shevchenko

Date: Mon Aug 31 2026 - 04:38:29 EST


On Fri, Aug 28, 2026 at 05:30:36PM +0200, Janani Sunil wrote:
> Expose the per-channel offset and gain calibration registers through the
> IIO calibbias and calibscale attributes.

...

> chan[chan_idx] = (struct iio_chan_spec) {
> .type = IIO_VOLTAGE,
> - .info_mask_separate = BIT(IIO_CHAN_INFO_SCALE) |
> + .info_mask_separate = BIT(IIO_CHAN_INFO_CALIBBIAS) |

Why? Leave the existing code and just squeeze the new ones accordingly.

> + BIT(IIO_CHAN_INFO_CALIBSCALE) |
> + BIT(IIO_CHAN_INFO_SCALE) |
> BIT(IIO_CHAN_INFO_SAMP_FREQ),

--
With Best Regards,
Andy Shevchenko