clocksource/drivers/exynos_mct: Remove mct interrupt index enum
authorAlim Akhtar <alim.akhtar@samsung.com>
Mon, 21 Feb 2022 17:45:45 +0000 (23:15 +0530)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 7 Mar 2022 17:27:22 +0000 (18:27 +0100)
MCT driver define an enum which list global and local timer's
irq index. Most of them are not used but MCT_G0_IRQ and
MCT_L0_IRQ and these two are at a fixed offset/index.
Get rid of this enum and use a #define for the used irq index.

No functional changes expected.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com>
Link: https://lore.kernel.org/r/20220221174547.26176-1-alim.akhtar@samsung.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/clocksource/exynos_mct.c

index 03782b399ea1a4c8f8b9f31aacb0c0b032c56af4..341ee47ba35bb6400485f01ab74dc2371527ad4e 100644 (file)
 #define MCT_CLKEVENTS_RATING           350
 #endif
 
+/* There are four Global timers starting with 0 offset */
+#define MCT_G0_IRQ     0
+/* Local timers count starts after global timer count */
+#define MCT_L0_IRQ     4
+#define MCT_NR_IRQS    12
+
 enum {
        MCT_INT_SPI,
        MCT_INT_PPI
 };
 
-enum {
-       MCT_G0_IRQ,
-       MCT_G1_IRQ,
-       MCT_G2_IRQ,
-       MCT_G3_IRQ,
-       MCT_L0_IRQ,
-       MCT_L1_IRQ,
-       MCT_L2_IRQ,
-       MCT_L3_IRQ,
-       MCT_L4_IRQ,
-       MCT_L5_IRQ,
-       MCT_L6_IRQ,
-       MCT_L7_IRQ,
-       MCT_NR_IRQS,
-};
-
 static void __iomem *reg_base;
 static unsigned long clk_rate;
 static unsigned int mct_int_type;