dmaengine: fsl-edma: simply ATTR_DSIZE and ATTR_SSIZE by using ffs()
authorFrank Li <Frank.Li@nxp.com>
Mon, 21 Aug 2023 16:16:11 +0000 (12:16 -0400)
committerVinod Koul <vkoul@kernel.org>
Tue, 22 Aug 2023 14:41:02 +0000 (20:11 +0530)
commitee2dda06465a3b0f533c829a5bdc2ff15588d8e0
treebf934c5132e762a9b6fab474839a0f924463f1d1
parent79434f9b97361601e65e0f5576e9760fefebf19a
dmaengine: fsl-edma: simply ATTR_DSIZE and ATTR_SSIZE by using ffs()

Removes all ATTR_DSIZE_*BIT(BYTE) and ATTR_SSIZE_*BIT(BYTE) definitions
in edma. Uses ffs() instead, as it gives identical results. This simplifies
the code and avoids adding more similar definitions in future V3 version.

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