diff options
| author | Daniel Lezcano <daniel.lezcano@linaro.org> | 2025-08-04 17:23:26 +0200 |
|---|---|---|
| committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2025-09-23 12:29:09 +0200 |
| commit | 0c063c9afc1b5243adde544637e273c1ac0a31d9 (patch) | |
| tree | 1a3cc3f45e6604f44fb960666683962433908048 /drivers/clocksource | |
| parent | 375fbfc66ca23873c3d9b1c5f6739bf0e2875a57 (diff) | |
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
Diffstat (limited to 'drivers/clocksource')
| -rw-r--r-- | drivers/clocksource/timer-vf-pit.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/clocksource/timer-vf-pit.c b/drivers/clocksource/timer-vf-pit.c index d408dcddb4e9..d1aec6aaeb02 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 |