]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
clocksource/drivers/vf-pit: Convert raw values to BIT macros
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 4 Aug 2025 15:23:26 +0000 (17:23 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 23 Sep 2025 10:29:09 +0000 (12:29 +0200)
Use the BIT macros instead of the shifting syntax.

No functional change intended.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20250804152344.1109310-9-daniel.lezcano@linaro.org
drivers/clocksource/timer-vf-pit.c

index d408dcddb4e94f4f121eb99ba5a7fa4c6598cdb0..d1aec6aaeb02f92c1208d6d1ea38f12e6979c55f 100644 (file)
 #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