Staging: mt7621-dma: Fix checkpatch issues
Subsystems (2)
v2 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
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
PATCH v2 1/2 Staging: mt761-dma: Alignment should match open paranthesis
Adjust "dev_dbg" parameters to match alignment with open paranthesis 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
@@ -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
Re: [PATCH v2 1/2] Staging: mt761-dma: Alignment should match open paranthesis
Quoted 4 lines · Bhanusree Pola
Adjust "
dev_dbg" parameters to match alignment with open paranthesis Issue found with checkpatch.plSigned-off-by Bhanusree Pola <[email protected]>
Quoted 18 lines
--- drivers/staging/mt7621-dma/mtk-hsdma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/mt7621-dma/mtk-hsdma.c +1
-1@@ -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];
PATCH v2 2/2 Staging: mt7621_dma: Prefer unsigned int over just unsigned
In reply to Bhanusree PolaReplace '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
@@ -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
Matthias Brugger
maintainerRe: [PATCH v2 2/2] Staging: mt7621_dma: Prefer unsigned int over just unsigned
Quoted 13 lines · Bhanusree Pola
Replace 'unsigned' with 'unsigned int' to be specific with data type. Issue found with checkpatch.pl
Signed-off-by Bhanusree Pola <[email protected]>--- drivers/staging/mt7621-dma/mtk-hsdma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/mt7621-dma/mtk-hsdma.c +0
-0
drivers/staging/mt7621-dma/mtk-hsdma.c static inline u32 mtk_hsdma_read(struct mtk_hsdam_engine *hsdma, u32 reg) · line 194
Quoted 5 lines
drivers/staging/mt7621-dma/mtk-hsdma.c +1
-1@@ -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)
You could align to the open paranthesis as well?
Regards,
Matthias
Quoted 4 lines
drivers/staging/mt7621-dma/mtk-hsdma.c +0
-0{writel (val, hsdma->base + reg); }
Greg Kroah-Hartman
maintainerRe: [PATCH v2 2/2] Staging: mt7621_dma: Prefer unsigned int over just unsigned
Quoted 18 lines · Matthias Brugger
Quoted 15 lines · Bhanusree Pola
Replace 'unsigned' with 'unsigned int' to be specific with data type. Issue found with checkpatch.pl
Signed-off-by Bhanusree Pola <[email protected]>--- drivers/staging/mt7621-dma/mtk-hsdma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/mt7621-dma/mtk-hsdma.c +0
-0@@ -191,7 +191,7 @@ static inline u32 mtk_hsdma_read(struct mtk_hsdam_engine *hsdma, u32 reg) }
Quoted 5 lines
drivers/staging/mt7621-dma/mtk-hsdma.c static inline u32 mtk_hsdma_read(struct mtk_hsdam_engine *hsdma, u32 reg) · line 194
Quoted 3 lines
drivers/staging/mt7621-dma/mtk-hsdma.c +1
-1static inline void mtk_hsdma_write (struct mtk_hsdam_engine *hsdma, -unsigned reg,u32 val) +unsigned int reg,u32 val)You could align to the open paranthesis as well?
No, please only one type of change per patch.
thanks,
greg k-h