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

ARM: 6293/1: coresight: cosmetic fixes

Use BIT() macro whenever it is sensible to do so.

Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Alexander Shishkin <virtuoso@slind.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

authored by

Alexander Shishkin and committed by
Russell King
9f533691 8234eaef

+11 -11
+11 -11
arch/arm/include/asm/hardware/coresight.h
··· 100 100 101 101 /* ETM status register, "ETM Architecture", 3.3.2 */ 102 102 #define ETMR_STATUS (0x10) 103 - #define ETMST_OVERFLOW (1 << 0) 104 - #define ETMST_PROGBIT (1 << 1) 105 - #define ETMST_STARTSTOP (1 << 2) 106 - #define ETMST_TRIGGER (1 << 3) 103 + #define ETMST_OVERFLOW BIT(0) 104 + #define ETMST_PROGBIT BIT(1) 105 + #define ETMST_STARTSTOP BIT(2) 106 + #define ETMST_TRIGGER BIT(3) 107 107 108 108 #define etm_progbit(t) (etm_readl((t), ETMR_STATUS) & ETMST_PROGBIT) 109 109 #define etm_started(t) (etm_readl((t), ETMR_STATUS) & ETMST_STARTSTOP) ··· 111 111 112 112 #define ETMR_TRACEENCTRL2 0x1c 113 113 #define ETMR_TRACEENCTRL 0x24 114 - #define ETMTE_INCLEXCL (1 << 24) 114 + #define ETMTE_INCLEXCL BIT(24) 115 115 #define ETMR_TRACEENEVT 0x20 116 116 #define ETMCTRL_OPTS (ETMCTRL_DO_CPRT | \ 117 117 ETMCTRL_DATA_DO_ADDR | \ ··· 134 134 #define ETBR_CTRL 0x20 135 135 #define ETBR_FORMATTERCTRL 0x304 136 136 #define ETBFF_ENFTC 1 137 - #define ETBFF_ENFCONT (1 << 1) 138 - #define ETBFF_FONFLIN (1 << 4) 139 - #define ETBFF_MANUAL_FLUSH (1 << 6) 140 - #define ETBFF_TRIGIN (1 << 8) 141 - #define ETBFF_TRIGEVT (1 << 9) 142 - #define ETBFF_TRIGFL (1 << 10) 137 + #define ETBFF_ENFCONT BIT(1) 138 + #define ETBFF_FONFLIN BIT(4) 139 + #define ETBFF_MANUAL_FLUSH BIT(6) 140 + #define ETBFF_TRIGIN BIT(8) 141 + #define ETBFF_TRIGEVT BIT(9) 142 + #define ETBFF_TRIGFL BIT(10) 143 143 144 144 #define etb_writel(t, v, x) \ 145 145 (__raw_writel((v), (t)->etb_regs + (x)))