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

MIPS: EMMA2RH: Replace EMMA2RH_IRQ_INTxx with EMMA2RH_IRQ_INT(n)

Don't duplicate worthless lines.

Signed-off-by: Shinya Kuribayashi <shinya.kuribayashi.px@renesas.com>
To: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/1389/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by

Shinya Kuribayashi and committed by
Ralf Baechle
4040703f 9e6f3969

+9 -72
+7 -70
arch/mips/include/asm/emma/emma2rh.h
··· 107 107 * emma2rh irq defs 108 108 */ 109 109 110 - #define EMMA2RH_IRQ_INT0 (0 + EMMA2RH_IRQ_BASE) 111 - #define EMMA2RH_IRQ_INT1 (1 + EMMA2RH_IRQ_BASE) 112 - #define EMMA2RH_IRQ_INT2 (2 + EMMA2RH_IRQ_BASE) 113 - #define EMMA2RH_IRQ_INT3 (3 + EMMA2RH_IRQ_BASE) 114 - #define EMMA2RH_IRQ_INT4 (4 + EMMA2RH_IRQ_BASE) 115 - #define EMMA2RH_IRQ_INT5 (5 + EMMA2RH_IRQ_BASE) 116 - #define EMMA2RH_IRQ_INT6 (6 + EMMA2RH_IRQ_BASE) 117 - #define EMMA2RH_IRQ_INT7 (7 + EMMA2RH_IRQ_BASE) 118 - #define EMMA2RH_IRQ_INT8 (8 + EMMA2RH_IRQ_BASE) 119 - #define EMMA2RH_IRQ_INT9 (9 + EMMA2RH_IRQ_BASE) 120 - #define EMMA2RH_IRQ_INT10 (10 + EMMA2RH_IRQ_BASE) 121 - #define EMMA2RH_IRQ_INT11 (11 + EMMA2RH_IRQ_BASE) 122 - #define EMMA2RH_IRQ_INT12 (12 + EMMA2RH_IRQ_BASE) 123 - #define EMMA2RH_IRQ_INT13 (13 + EMMA2RH_IRQ_BASE) 124 - #define EMMA2RH_IRQ_INT14 (14 + EMMA2RH_IRQ_BASE) 125 - #define EMMA2RH_IRQ_INT15 (15 + EMMA2RH_IRQ_BASE) 126 - #define EMMA2RH_IRQ_INT16 (16 + EMMA2RH_IRQ_BASE) 127 - #define EMMA2RH_IRQ_INT17 (17 + EMMA2RH_IRQ_BASE) 128 - #define EMMA2RH_IRQ_INT18 (18 + EMMA2RH_IRQ_BASE) 129 - #define EMMA2RH_IRQ_INT19 (19 + EMMA2RH_IRQ_BASE) 130 - #define EMMA2RH_IRQ_INT20 (20 + EMMA2RH_IRQ_BASE) 131 - #define EMMA2RH_IRQ_INT21 (21 + EMMA2RH_IRQ_BASE) 132 - #define EMMA2RH_IRQ_INT22 (22 + EMMA2RH_IRQ_BASE) 133 - #define EMMA2RH_IRQ_INT23 (23 + EMMA2RH_IRQ_BASE) 134 - #define EMMA2RH_IRQ_INT24 (24 + EMMA2RH_IRQ_BASE) 135 - #define EMMA2RH_IRQ_INT25 (25 + EMMA2RH_IRQ_BASE) 136 - #define EMMA2RH_IRQ_INT26 (26 + EMMA2RH_IRQ_BASE) 137 - #define EMMA2RH_IRQ_INT27 (27 + EMMA2RH_IRQ_BASE) 138 - #define EMMA2RH_IRQ_INT28 (28 + EMMA2RH_IRQ_BASE) 139 - #define EMMA2RH_IRQ_INT29 (29 + EMMA2RH_IRQ_BASE) 140 - #define EMMA2RH_IRQ_INT30 (30 + EMMA2RH_IRQ_BASE) 141 - #define EMMA2RH_IRQ_INT31 (31 + EMMA2RH_IRQ_BASE) 142 - #define EMMA2RH_IRQ_INT32 (32 + EMMA2RH_IRQ_BASE) 143 - #define EMMA2RH_IRQ_INT33 (33 + EMMA2RH_IRQ_BASE) 144 - #define EMMA2RH_IRQ_INT34 (34 + EMMA2RH_IRQ_BASE) 145 - #define EMMA2RH_IRQ_INT35 (35 + EMMA2RH_IRQ_BASE) 146 - #define EMMA2RH_IRQ_INT36 (36 + EMMA2RH_IRQ_BASE) 147 - #define EMMA2RH_IRQ_INT37 (37 + EMMA2RH_IRQ_BASE) 148 - #define EMMA2RH_IRQ_INT38 (38 + EMMA2RH_IRQ_BASE) 149 - #define EMMA2RH_IRQ_INT39 (39 + EMMA2RH_IRQ_BASE) 150 - #define EMMA2RH_IRQ_INT40 (40 + EMMA2RH_IRQ_BASE) 151 - #define EMMA2RH_IRQ_INT41 (41 + EMMA2RH_IRQ_BASE) 152 - #define EMMA2RH_IRQ_INT42 (42 + EMMA2RH_IRQ_BASE) 153 - #define EMMA2RH_IRQ_INT43 (43 + EMMA2RH_IRQ_BASE) 154 - #define EMMA2RH_IRQ_INT44 (44 + EMMA2RH_IRQ_BASE) 155 - #define EMMA2RH_IRQ_INT45 (45 + EMMA2RH_IRQ_BASE) 156 - #define EMMA2RH_IRQ_INT46 (46 + EMMA2RH_IRQ_BASE) 157 - #define EMMA2RH_IRQ_INT47 (47 + EMMA2RH_IRQ_BASE) 158 - #define EMMA2RH_IRQ_INT48 (48 + EMMA2RH_IRQ_BASE) 159 - #define EMMA2RH_IRQ_INT49 (49 + EMMA2RH_IRQ_BASE) 160 - #define EMMA2RH_IRQ_INT50 (50 + EMMA2RH_IRQ_BASE) 161 - #define EMMA2RH_IRQ_INT51 (51 + EMMA2RH_IRQ_BASE) 162 - #define EMMA2RH_IRQ_INT52 (52 + EMMA2RH_IRQ_BASE) 163 - #define EMMA2RH_IRQ_INT53 (53 + EMMA2RH_IRQ_BASE) 164 - #define EMMA2RH_IRQ_INT54 (54 + EMMA2RH_IRQ_BASE) 165 - #define EMMA2RH_IRQ_INT55 (55 + EMMA2RH_IRQ_BASE) 166 - #define EMMA2RH_IRQ_INT56 (56 + EMMA2RH_IRQ_BASE) 167 - #define EMMA2RH_IRQ_INT57 (57 + EMMA2RH_IRQ_BASE) 168 - #define EMMA2RH_IRQ_INT58 (58 + EMMA2RH_IRQ_BASE) 169 - #define EMMA2RH_IRQ_INT59 (59 + EMMA2RH_IRQ_BASE) 170 - #define EMMA2RH_IRQ_INT60 (60 + EMMA2RH_IRQ_BASE) 171 - #define EMMA2RH_IRQ_INT61 (61 + EMMA2RH_IRQ_BASE) 172 - #define EMMA2RH_IRQ_INT62 (62 + EMMA2RH_IRQ_BASE) 173 - #define EMMA2RH_IRQ_INT63 (63 + EMMA2RH_IRQ_BASE) 110 + #define EMMA2RH_IRQ_INT(n) (EMMA2RH_IRQ_BASE + (n)) 174 111 175 - #define EMMA2RH_IRQ_PFUR0 EMMA2RH_IRQ_INT49 176 - #define EMMA2RH_IRQ_PFUR1 EMMA2RH_IRQ_INT50 177 - #define EMMA2RH_IRQ_PFUR2 EMMA2RH_IRQ_INT51 178 - #define EMMA2RH_IRQ_PIIC0 EMMA2RH_IRQ_INT56 179 - #define EMMA2RH_IRQ_PIIC1 EMMA2RH_IRQ_INT57 180 - #define EMMA2RH_IRQ_PIIC2 EMMA2RH_IRQ_INT58 112 + #define EMMA2RH_IRQ_PFUR0 EMMA2RH_IRQ_INT(49) 113 + #define EMMA2RH_IRQ_PFUR1 EMMA2RH_IRQ_INT(50) 114 + #define EMMA2RH_IRQ_PFUR2 EMMA2RH_IRQ_INT(51) 115 + #define EMMA2RH_IRQ_PIIC0 EMMA2RH_IRQ_INT(56) 116 + #define EMMA2RH_IRQ_PIIC1 EMMA2RH_IRQ_INT(57) 117 + #define EMMA2RH_IRQ_PIIC2 EMMA2RH_IRQ_INT(58) 181 118 182 119 /* 183 120 * EMMA2RH Register Access
+2 -2
arch/mips/include/asm/emma/markeins.h
··· 25 25 #define NUM_EMMA2RH_IRQ_SW 32 26 26 #define NUM_EMMA2RH_IRQ_GPIO 32 27 27 28 - #define EMMA2RH_SW_CASCADE (EMMA2RH_IRQ_INT7 - EMMA2RH_IRQ_INT0) 29 - #define EMMA2RH_GPIO_CASCADE (EMMA2RH_IRQ_INT46 - EMMA2RH_IRQ_INT0) 28 + #define EMMA2RH_SW_CASCADE (EMMA2RH_IRQ_INT(7) - EMMA2RH_IRQ_INT(0)) 29 + #define EMMA2RH_GPIO_CASCADE (EMMA2RH_IRQ_INT(46) - EMMA2RH_IRQ_INT(0)) 30 30 31 31 #define EMMA2RH_SW_IRQ_BASE (EMMA2RH_IRQ_BASE + NUM_EMMA2RH_IRQ) 32 32 #define EMMA2RH_GPIO_IRQ_BASE (EMMA2RH_SW_IRQ_BASE + NUM_EMMA2RH_IRQ_SW)