Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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@linaro.org>
Link: https://lore.kernel.org/r/20250804152344.1109310-9-daniel.lezcano@linaro.org

+4 -4
+4 -4
drivers/clocksource/timer-vf-pit.c
··· 21 21 #define PITTCTRL 0x08 22 22 #define PITTFLG 0x0c 23 23 24 - #define PITMCR_MDIS (0x1 << 1) 24 + #define PITMCR_MDIS BIT(1) 25 25 26 - #define PITTCTRL_TEN (0x1 << 0) 27 - #define PITTCTRL_TIE (0x1 << 1) 28 - #define PITCTRL_CHN (0x1 << 2) 26 + #define PITTCTRL_TEN BIT(0) 27 + #define PITTCTRL_TIE BIT(1) 28 + #define PITCTRL_CHN BIT(2) 29 29 30 30 #define PITTFLG_TIF 0x1 31 31