]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
pinctrl: amd: Fix two small typos
authorMarc Ferland <marc.ferland@sonatest.com>
Wed, 9 Oct 2024 15:12:49 +0000 (11:12 -0400)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 11 Oct 2024 19:52:53 +0000 (21:52 +0200)
Found those two while reading the code:

EDGE_TRAGGER -> EDGE_TRIGGER
BOTH_EADGE -> BOTH_EDGES

No functional changes, compile tested only.

Signed-off-by: Marc Ferland <marc.ferland@sonatest.com>
Link: https://lore.kernel.org/20241009151249.2086702-1-marc.ferland@sonatest.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-amd.c
drivers/pinctrl/pinctrl-amd.h

index b0fab262d534d76189b63f25445ffc8299fac19f..fff6d4209ad5788bb6354628338e663ffb005851 100644 (file)
@@ -506,7 +506,7 @@ static int amd_gpio_irq_set_type(struct irq_data *d, unsigned int type)
        case IRQ_TYPE_EDGE_BOTH:
                pin_reg &= ~BIT(LEVEL_TRIG_OFF);
                pin_reg &= ~(ACTIVE_LEVEL_MASK << ACTIVE_LEVEL_OFF);
-               pin_reg |= BOTH_EADGE << ACTIVE_LEVEL_OFF;
+               pin_reg |= BOTH_EDGES << ACTIVE_LEVEL_OFF;
                irq_set_handler_locked(d, handle_edge_irq);
                break;
 
index cf59089f277639629f80928e956b024b30fb6351..667be49c3f48d2342984d13fe9d1b111f3353c5c 100644 (file)
 #define DB_TYPE_PRESERVE_HIGH_GLITCH      0x2UL
 #define DB_TYPE_REMOVE_GLITCH             0x3UL
 
-#define EDGE_TRAGGER   0x0UL
+#define EDGE_TRIGGER   0x0UL
 #define LEVEL_TRIGGER  0x1UL
 
 #define ACTIVE_HIGH    0x0UL
 #define ACTIVE_LOW     0x1UL
-#define BOTH_EADGE     0x2UL
+#define BOTH_EDGES     0x2UL
 
 #define ENABLE_INTERRUPT       0x1UL
 #define DISABLE_INTERRUPT      0x0UL