Skip to contentSkip to conversation

dmaengine: xilinx: dpdma: Use kernel type u32 over uint32_t

PATCH Applied Michal Simek 3 participants 3 messages Jun 23, 2021 – Jun 24, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dmaengine: xilinx: dpdma: Use kernel type u32 over uint32_t

Use u32 kernel type instead of uint32_t. Issue is reported by checkpatch.pl --strict.

---

 drivers/dma/xilinx/xilinx_dpdma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/dma/xilinx/xilinx_dpdma.c +1 -1
index 539f1a42ca72..0b67083c95d0 100644
@@ -1600,7 +1600,7 @@ static struct dma_chan *of_dma_xilinx_xlate(struct of_phandle_args *dma_spec,
 					    struct of_dma *ofdma)
 {
 	struct xilinx_dpdma_device *xdev = ofdma->of_dma_data;
-	uint32_t chan_id = dma_spec->args[0];
+	u32 chan_id = dma_spec->args[0];
 
 	if (chan_id >= ARRAY_SIZE(xdev->chan))
 		return NULL;
Signature · 1 line
2.32.0
maintainer Reviewed-by on v1 1/1
#1 lore raw

Hi Michal,

Thank you for the patch.

Quoted 4 lines · Michal Simek

Use u32 kernel type instead of uint32_t. Issue is reported by checkpatch.pl --strict.

Quoted 18 lines

---

 drivers/dma/xilinx/xilinx_dpdma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/dma/xilinx/xilinx_dpdma.c +1 -1
index 539f1a42ca72..0b67083c95d0 100644
@@ -1600,7 +1600,7 @@ static struct dma_chan *of_dma_xilinx_xlate(struct of_phandle_args *dma_spec,
 					    struct of_dma *ofdma)
 {
 	struct xilinx_dpdma_device *xdev = ofdma->of_dma_data;
-	uint32_t chan_id = dma_spec->args[0];
+	u32 chan_id = dma_spec->args[0];
 
 	if (chan_id >= ARRAY_SIZE(xdev->chan))
 		return NULL;
Signature · 3 lines
Regards,

Laurent Pinchart
maintainer Applied
#2 lore raw
In reply to Michal Simek
Quoted 2 lines · Michal Simek

Use u32 kernel type instead of uint32_t. Issue is reported by checkpatch.pl --strict.

Applied, thanks

Signature · 1 line
~Vinod