All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging: media: tegra-video: prefer using the BIT macro
@ 2026-05-17  6:05 Diego Fernando Mancera Gómez
  2026-05-18  5:08 ` Dan Carpenter
  0 siblings, 1 reply; 3+ messages in thread
From: Diego Fernando Mancera Gómez @ 2026-05-17  6:05 UTC (permalink / raw)
  To: thierry.reding, jonathanh, skomatineni, luca.ceresoli, gregkh
  Cc: mchehab, linux-media, linux-tegra, linux-staging,
	Diego Fernando Mancera Gómez

Replace open-coded bit shifts (1 << 28) with the standard kernel BIT
macro. This improves code uniformity, matches style guidelines, and
prevents accidental signed overflow issues.

Signed-off-by: Diego Fernando Mancera Gómez <diegomancera.dev@gmail.com>
---
 drivers/staging/media/tegra-video/tegra20.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/media/tegra-video/tegra20.c b/drivers/staging/media/tegra-video/tegra20.c
index e513e6ccb..08fa234af 100644
--- a/drivers/staging/media/tegra-video/tegra20.c
+++ b/drivers/staging/media/tegra-video/tegra20.c
@@ -177,7 +177,7 @@ enum tegra_vi_out {
 #define       CSI_SKIP_PACKET_THRESHOLD(n)		(((n) & 0xff) << 16)
 #define TEGRA_CSI_PIXEL_STREAM_CONTROL0(n)		(0x0018 + (n) * 0x2c)
 #define       CSI_PP_PAD_FRAME_PAD0S			(0 << 28)
-#define       CSI_PP_PAD_FRAME_PAD1S			(1 << 28)
+#define       CSI_PP_PAD_FRAME_PAD1S			BIT(28)
 #define       CSI_PP_PAD_FRAME_NOPAD			(2 << 28)
 #define       CSI_PP_HEADER_EC_ENABLE			BIT(27)
 #define       CSI_PP_PAD_SHORT_LINE_PAD0S		(0 << 24)
-- 
2.43.0


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

end of thread, other threads:[~2026-05-18  6:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-17  6:05 [PATCH] staging: media: tegra-video: prefer using the BIT macro Diego Fernando Mancera Gómez
2026-05-18  5:08 ` Dan Carpenter
2026-05-18  6:04   ` Diego Fernando Mancera Gomez

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.