[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250705160129.3688026-8-daniel.lezcano@linaro.org>
Date: Sat, 5 Jul 2025 18:01:14 +0200
From: Daniel Lezcano <daniel.lezcano@...aro.org>
To: daniel.lezcano@...aro.org,
tglx@...utronix.de
Cc: ghennadi.procopciuc@....nxp.com,
S32@....com,
linux-kernel@...r.kernel.org
Subject: [PATCH 08/20] clocksource/drivers/vf-pit: Convert raw values to BIT macros
Use the BIT macros instead of the shifting syntax.
No functional change intended.
Signed-off-by: Daniel Lezcano <daniel.lezcano@...aro.org>
---
drivers/clocksource/timer-vf-pit.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/clocksource/timer-vf-pit.c b/drivers/clocksource/timer-vf-pit.c
index e1f1e66a2664..be71c215d641 100644
--- a/drivers/clocksource/timer-vf-pit.c
+++ b/drivers/clocksource/timer-vf-pit.c
@@ -21,11 +21,11 @@
#define PITTCTRL 0x08
#define PITTFLG 0x0c
-#define PITMCR_MDIS (0x1 << 1)
+#define PITMCR_MDIS BIT(1)
-#define PITTCTRL_TEN (0x1 << 0)
-#define PITTCTRL_TIE (0x1 << 1)
-#define PITCTRL_CHN (0x1 << 2)
+#define PITTCTRL_TEN BIT(0)
+#define PITTCTRL_TIE BIT(1)
+#define PITCTRL_CHN BIT(2)
#define PITTFLG_TIF 0x1
--
2.43.0
Powered by blists - more mailing lists