Re: [PATCH v7 4/7] iio: dac: ad5686: implement new sync() op for the spi bus

From: Andy Shevchenko

Date: Sun Jul 12 2026 - 03:03:50 EST


On Fri, Jul 10, 2026 at 12:20:48PM +0100, Rodrigo Alencar via B4 Relay wrote:

> Use of local SPI bus data to manage a collection of SPI transfers and
> flush them to the SPI platform driver with the sync() operation. This
> allows for faster handling of multiple channel DAC writes, avoiding kernel
> overhead per spi_sync() call, which will be helpful when enabling
> triggered buffer support.

...

> int ad5686_probe(struct device *dev,
> const struct ad5686_chip_info *chip_info,
> - const char *name, const struct ad5686_bus_ops *ops)
> + const char *name, const struct ad5686_bus_ops *ops,
> + void *bus_data)

Can't you utilise the dev->platform_data for this? I believe it's exactly
the case where it suits.

--
With Best Regards,
Andy Shevchenko