Skip to content
Commit 81ebed8a authored by Yajun Deng's avatar Yajun Deng Committed by Vinod Koul
Browse files

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: default avatarYajun Deng <yajun.deng@linux.dev>
Reviewed-by: default avatarDave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/20230815072346.2798927-1-yajun.deng@linux.dev


Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 33a0b734
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment