diff mbox series

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

Message ID 9569008794d519b487348bfeafbfd76c5da5755e.1624446336.git.michal.simek@xilinx.com (mailing list archive)
State New, archived
Headers show
Series dmaengine: xilinx: dpdma: Use kernel type u32 over uint32_t | expand

Commit Message

Michal Simek June 23, 2021, 11:05 a.m. UTC
Use u32 kernel type instead of uint32_t. Issue is reported by
checkpatch.pl --strict.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
---

 drivers/dma/xilinx/xilinx_dpdma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Laurent Pinchart June 23, 2021, 12:58 p.m. UTC | #1
Hi Michal,

Thank you for the patch.

On Wed, Jun 23, 2021 at 01:05:39PM +0200, Michal Simek wrote:
> Use u32 kernel type instead of uint32_t. Issue is reported by
> checkpatch.pl --strict.
> 
> Signed-off-by: Michal Simek <michal.simek@xilinx.com>

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

> ---
> 
>  drivers/dma/xilinx/xilinx_dpdma.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/dma/xilinx/xilinx_dpdma.c b/drivers/dma/xilinx/xilinx_dpdma.c
> index 539f1a42ca72..0b67083c95d0 100644
> --- a/drivers/dma/xilinx/xilinx_dpdma.c
> +++ b/drivers/dma/xilinx/xilinx_dpdma.c
> @@ -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;
Vinod Koul June 24, 2021, 11:10 a.m. UTC | #2
On 23-06-21, 13:05, Michal Simek wrote:
> Use u32 kernel type instead of uint32_t. Issue is reported by
> checkpatch.pl --strict.

Applied, thanks
diff mbox series

Patch

diff --git a/drivers/dma/xilinx/xilinx_dpdma.c b/drivers/dma/xilinx/xilinx_dpdma.c
index 539f1a42ca72..0b67083c95d0 100644
--- a/drivers/dma/xilinx/xilinx_dpdma.c
+++ b/drivers/dma/xilinx/xilinx_dpdma.c
@@ -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;