Re: [PATCH 1/1] i2c: use dmaengine_desc_set_callback()

From: Alain Volmat

Date: Tue Nov 03 2026 - 10:10:57 EST


On Mon, Nov 02, 2026 at 12:00:02PM -0500, Frank.Li@xxxxxxxxxxx wrote:
> From: Frank Li <Frank.Li@xxxxxxx>
>
> Replace open-coded assignments to callback and callback_param fields
> of struct dma_async_tx_descriptor with calls to the
> dmaengine_desc_set_callback() helper across various I2C bus drivers.
>
> No functional change intended. Prepare make to struct
> dma_async_tx_descriptor private to the DMA engine.
>
> Signed-off-by: Frank Li <Frank.Li@xxxxxxx>
> ---
> drivers/i2c/busses/i2c-at91-master.c | 6 ++----
> drivers/i2c/busses/i2c-imx-lpi2c.c | 3 +--
> drivers/i2c/busses/i2c-imx.c | 3 +--
> drivers/i2c/busses/i2c-mxs.c | 3 +--
> drivers/i2c/busses/i2c-qcom-geni.c | 3 +--
> drivers/i2c/busses/i2c-qup.c | 6 ++----
> drivers/i2c/busses/i2c-rcar.c | 3 +--
> drivers/i2c/busses/i2c-sh_mobile.c | 3 +--
> drivers/i2c/busses/i2c-stm32.c | 3 +--

For the STM32 I2C driver:

Acked-by: Alain Volmat <alain.volmat@xxxxxxxxxxx>

Regards,
Alain