dmaengine: Simplify dma_async_device_register()
There are a lot of duplicate codes for checking if the dma has some capability. Define a temporary macro that is used to check if the dma claims some capability and if the corresponding function is implemented. Signed-off-by:Yajun Deng <yajun.deng@linux.dev> Reviewed-by:
Dave Jiang <dave.jiang@intel.com> Link: https://lore.kernel.org/r/20230815072346.2798927-1-yajun.deng@linux.dev Signed-off-by:
Vinod Koul <vkoul@kernel.org>
Loading
Please register or sign in to comment