Skip to contentSkip to conversation

Staging: mt7621-dma: Fix checkpatch issues

PATCH New Bhanusree Pola 1 participant 3 messages Feb 26, 2019

Subsystems (2)

v3 of 4 New Latest is v4 →

lore
Share & tools
lore
#0 lore raw

v3 cover Staging: mt7621-dma: Fix checkpatch issues

This patch series cleans up the following checkpatch.pl issues:
CHECK: Alignment should match open parenthesis
WARNING: Prefer 'unsigned int' to bare use of 'unsigned'

v2:
[PATCH 1/2]: commit log modified
[PATCH 2/2]: commit log modified
v3:
[PATCH 1/2]:Commit log corrected

Bhanusree Pola (2):
Staging: mt761-dma: Alignment should match open paranthesis
Staging: mt7621_dma: Prefer unsigned int over just unsigned

 drivers/staging/mt7621-dma/mtk-hsdma.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Signature · 1 line
2.17.1
#1 lore raw

PATCH v3 1/2 Staging: mt761-dma: Alignment should match open parenthesis

Adjust "dev_dbg" parameters to match alignment with open parenthesis Issue found with checkpatch.pl

---
 drivers/staging/mt7621-dma/mtk-hsdma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/mt7621-dma/mtk-hsdma.c +1 -1
index d67a2504adb1..20c8879d4979 100644
@@ -242,7 +242,7 @@ static void hsdma_dump_desc(struct mtk_hsdam_engine *hsdma,
 	int i;
 
 	dev_dbg(hsdma->ddev.dev, "tx idx: %d, rx idx: %d\n",
-			chan->tx_idx, chan->rx_idx);
+		chan->tx_idx, chan->rx_idx);
 
 	for (i = 0; i < HSDMA_DESCS_NUM; i++) {
 		tx_desc = &chan->tx_ring[i];
Signature · 1 line
2.17.1
#2 lore raw

PATCH v3 2/2 Staging: mt7621_dma: Prefer unsigned int over just unsigned

In reply to Bhanusree Pola

Replace 'unsigned' with 'unsigned int' to be specific with data type. Issue found with checkpatch.pl

---
 drivers/staging/mt7621-dma/mtk-hsdma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/mt7621-dma/mtk-hsdma.c +1 -1
index 20c8879d4979..7b2cdd2829a5 100644
@@ -191,7 +191,7 @@ static inline u32 mtk_hsdma_read(struct mtk_hsdam_engine *hsdma, u32 reg)
 }
 
 static inline void mtk_hsdma_write(struct mtk_hsdam_engine *hsdma,
-				   unsigned reg, u32 val)
+				   unsigned int reg, u32 val)
 {
 	writel(val, hsdma->base + reg);
 }
Signature · 1 line
2.17.1