Re: [PATCH v4 04/10] iio: adc: ti-ads1262: support per-channel sampling frequency

From: Jonathan Cameron

Date: Sat Aug 29 2026 - 22:22:49 EST


On Fri, 28 Aug 2026 01:38:19 -0500
Kurt Borja <kuurtb@xxxxxxxxx> wrote:

> Add per-channel sampling frequency support. The "available" attribute is
> assigned per-channel too, in order to eventually support per-filter
> availability.
>
> Signed-off-by: Kurt Borja <kuurtb@xxxxxxxxx>

> struct ads1262 {
> struct spi_device *spi;
> struct regmap *regmap;
> struct gpio_desc *start_gpiod;
> + size_t num_channels;
> + struct ads1262_channel *channels;

__counted_by_ptr() usable here?

> /* protects concurrent SPI transfers */
> struct mutex xfer_lock;
> /* protects channel state */
> @@ -185,6 +195,8 @@ struct ads1262 {