dmaengine: fsl-edma: use _Generic to handle difference type
authorFrank Li <Frank.Li@nxp.com>
Thu, 25 Apr 2024 20:59:46 +0000 (16:59 -0400)
committerVinod Koul <vkoul@kernel.org>
Sat, 4 May 2024 12:30:17 +0000 (18:00 +0530)
commit3f2282931f00c4c9c5057bb02f46778ba64ff625
tree8c3fe32c4ef98f42b0e5e726d040e2d2c236ec13
parent11102d0c343ba06ddd303f2503c0ce46d70052f2
dmaengine: fsl-edma: use _Generic to handle difference type

Introduce the use of C11 standard _Generic in the fsl-edma driver for
handling different TCD field types. Improve code clarity and help
compiler optimization.

Signed-off-by: Frank Li <Frank.Li@nxp.com>
Link: https://lore.kernel.org/r/20240425205947.3436501-2-Frank.Li@nxp.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/fsl-edma-common.h