Skip to content

Commit d7eac93

Browse files
mferlandlinusw
authored andcommitted
pinctrl: amd: Fix two small typos
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 <[email protected]> Link: https://lore.kernel.org/[email protected] Signed-off-by: Linus Walleij <[email protected]>
1 parent 1a075b1 commit d7eac93

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

drivers/pinctrl/pinctrl-amd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ static int amd_gpio_irq_set_type(struct irq_data *d, unsigned int type)
506506
case IRQ_TYPE_EDGE_BOTH:
507507
pin_reg &= ~BIT(LEVEL_TRIG_OFF);
508508
pin_reg &= ~(ACTIVE_LEVEL_MASK << ACTIVE_LEVEL_OFF);
509-
pin_reg |= BOTH_EADGE << ACTIVE_LEVEL_OFF;
509+
pin_reg |= BOTH_EDGES << ACTIVE_LEVEL_OFF;
510510
irq_set_handler_locked(d, handle_edge_irq);
511511
break;
512512

drivers/pinctrl/pinctrl-amd.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@
6060
#define DB_TYPE_PRESERVE_HIGH_GLITCH 0x2UL
6161
#define DB_TYPE_REMOVE_GLITCH 0x3UL
6262

63-
#define EDGE_TRAGGER 0x0UL
63+
#define EDGE_TRIGGER 0x0UL
6464
#define LEVEL_TRIGGER 0x1UL
6565

6666
#define ACTIVE_HIGH 0x0UL
6767
#define ACTIVE_LOW 0x1UL
68-
#define BOTH_EADGE 0x2UL
68+
#define BOTH_EDGES 0x2UL
6969

7070
#define ENABLE_INTERRUPT 0x1UL
7171
#define DISABLE_INTERRUPT 0x0UL

0 commit comments

Comments
 (0)