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

Wolfram Sang wsa+renesas at sang-engineering.com
Tue Nov 3 08:39:11 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>

Looks actually less readable to me, but I won't bike-shed. Code changes
look okay.

Reviewed-by: Wolfram Sang <wsa+renesas at sang-engineering.com>




More information about the linux-arm-kernel mailing list