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

Alain Volmat alain.volmat at foss.st.com
Tue Nov 3 05:04:08 PST 2026


On Mon, Nov 02, 2026 at 12:00:02PM -0500, Frank.Li at oss.nxp.com wrote:
> From: Frank Li <Frank.Li at nxp.com>
> 
> 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 at nxp.com>
> ---
>  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 at foss.st.com>

Regards,
Alain



More information about the linux-arm-kernel mailing list