All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Use BIT macro instead of (1 << HSDMA_GLO_BT_SHIFT)
@ 2021-09-02 11:52 Krish Jain
  2021-09-02  5:30 ` Greg KH
  2021-09-03  8:10 ` Dan Carpenter
  0 siblings, 2 replies; 7+ messages in thread
From: Krish Jain @ 2021-09-02 11:52 UTC (permalink / raw)
  To: gregkh; +Cc: linux-staging

This patch replaces (1 << HSDMA_GLO_BT_SHIFT) with the BIT(x) macro, as suggested by checkpatch.pl, for the file drivers/staging/mt7621-dma/hsdma-mt7621.c .

Signed-off-by: Krish Jain <krishjain02939@gmail.com>

---
 drivers/staging/mt7621-dma/hsdma-mt7621.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/mt7621-dma/hsdma-mt7621.c b/drivers/staging/mt7621-dma/hsdma-mt7621.c
index 89b72a802800..a99cec876110 100644
--- a/drivers/staging/mt7621-dma/hsdma-mt7621.c
+++ b/drivers/staging/mt7621-dma/hsdma-mt7621.c
@@ -72,7 +72,7 @@
 #define HSDMA_GLO_TX_DMA		BIT(0)
 
 #define HSDMA_BT_SIZE_16BYTES		(0 << HSDMA_GLO_BT_SHIFT)
-#define HSDMA_BT_SIZE_32BYTES		(1 << HSDMA_GLO_BT_SHIFT)
+#define HSDMA_BT_SIZE_32BYTES		BIT(HSDMA_GLO_BT_SHIFT)
 #define HSDMA_BT_SIZE_64BYTES		(2 << HSDMA_GLO_BT_SHIFT)
 #define HSDMA_BT_SIZE_128BYTES		(3 << HSDMA_GLO_BT_SHIFT)
 
@@ -164,8 +164,7 @@ struct mtk_hsdam_engine {
 
 static inline struct mtk_hsdam_engine *mtk_hsdma_chan_get_dev(struct mtk_hsdma_chan *chan)
 {
-	return container_of(chan->vchan.chan.device, struct mtk_hsdam_engine,
-			ddev);
+	return container_of(chan->vchan.chan.device, struct mtk_hsdam_engine, ddev);
 }
 
 static inline struct mtk_hsdma_chan *to_mtk_hsdma_chan(struct dma_chan *c)
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-09-03 15:52 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-02 11:52 [PATCH] Use BIT macro instead of (1 << HSDMA_GLO_BT_SHIFT) Krish Jain
2021-09-02  5:30 ` Greg KH
2021-09-02  5:46   ` Krish Jain
2021-09-02  5:46     ` Krish Jain
2021-09-02  5:57       ` Greg KH
2021-09-03  8:10 ` Dan Carpenter
2021-09-03 15:52   ` Krish Jain

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.