diff mbox series

pinctrl: amd: Fix two small typos

Message ID 20241009151249.2086702-1-marc.ferland@sonatest.com
State New
Headers show
Series pinctrl: amd: Fix two small typos | expand

Commit Message

Marc Ferland Oct. 9, 2024, 3:12 p.m. UTC
From: Marc Ferland <marc.ferland@sonatest.com>

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>
---
 drivers/pinctrl/pinctrl-amd.c | 2 +-
 drivers/pinctrl/pinctrl-amd.h | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

Comments

Linus Walleij Oct. 11, 2024, 7:53 p.m. UTC | #1
On Wed, Oct 9, 2024 at 5:13 PM <marc.ferland@gmail.com> wrote:

> From: Marc Ferland <marc.ferland@sonatest.com>
>
> 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>

Patch applied.

Yours,
Linus Walleij
diff mbox series

Patch

diff --git a/drivers/pinctrl/pinctrl-amd.c b/drivers/pinctrl/pinctrl-amd.c
index 7f66ec73199a..fbeab2ddef82 100644
--- a/drivers/pinctrl/pinctrl-amd.c
+++ b/drivers/pinctrl/pinctrl-amd.c
@@ -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;
 
diff --git a/drivers/pinctrl/pinctrl-amd.h b/drivers/pinctrl/pinctrl-amd.h
index cf59089f2776..667be49c3f48 100644
--- a/drivers/pinctrl/pinctrl-amd.h
+++ b/drivers/pinctrl/pinctrl-amd.h
@@ -60,12 +60,12 @@ 
 #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