diff options
| author | 2023-08-15 15:23:46 +0800 | |
|---|---|---|
| committer | 2023-08-21 18:36:46 +0530 | |
| commit | 81ebed8aa2c213939a4670f508031a57d4ecbb70 (patch) | |
| tree | 081a51de86d69ad862a7e3a12b4e515100132b54 /rust/kernel/ssh:/git@git.zx2c4.com/git: | |
| parent | dmaengine: fsl-edma: use struct_size() helper (diff) | |
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>
Diffstat (limited to 'rust/kernel/ssh:/git@git.zx2c4.com/git:')
0 files changed, 0 insertions, 0 deletions
