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

From: Kurt Borja

Date: Sun Sep 06 2026 - 16:20:37 EST


On Sat Aug 29, 2026 at 11:22 PM -03, Jonathan Cameron wrote:
> 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?

I didn't know about that tag :o I'll use it.

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

--
Thanks,
~ Kurt