From bc5f0092f182f23d8450cd4cd4b453353794cec4 Mon Sep 17 00:00:00 2001 From: Alin Jerpelea Date: Wed, 7 Apr 2021 13:01:38 +0200 Subject: [PATCH] arch: x86: fix Mixed Case errors Fix for Mixed Case errors reported by the nxstyle tool Signed-off-by: Alin Jerpelea --- arch/x86/include/i486/arch.h | 2 +- arch/x86/src/i486/up_irq.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/include/i486/arch.h b/arch/x86/include/i486/arch.h index e71a4010b0..6ffe2be453 100644 --- a/arch/x86/include/i486/arch.h +++ b/arch/x86/include/i486/arch.h @@ -230,7 +230,7 @@ # define PIC_ICW4_BMODE_SLAVE (2 << PIC_ICW4_BMODE_SHIFT) /* Buffered Mode - Slave */ # define PIC_ICW4_BMODE_MSTR (3 << PIC_ICW4_BMODE_SHIFT) /* Buffered Mode - Master */ # define PIC_ICW4_AEOI (1 << 1) /* Auto EOI */ -# define PIC_ICW4_808xMODE (1 << 0) /* 8086/8080 Mode (vs MCS-80/85) */ +# define PIC_ICW4_808XMODE (1 << 0) /* 8086/8080 Mode (vs MCS-80/85) */ /* Interrupt Mask Register */ diff --git a/arch/x86/src/i486/up_irq.c b/arch/x86/src/i486/up_irq.c index ab8f575939..0a5ee4945c 100644 --- a/arch/x86/src/i486/up_irq.c +++ b/arch/x86/src/i486/up_irq.c @@ -112,14 +112,14 @@ static void up_remappic(void) idt_outb(PIC_ICW1_ICW4 | PIC_ICW1_ICW1, PIC1_ICW1); idt_outb(0x20, PIC1_ICW2); idt_outb(PIC1_ICW3_IRQ2, PIC1_ICW3); - idt_outb(PIC_ICW4_808xMODE, PIC1_ICW4); + idt_outb(PIC_ICW4_808XMODE, PIC1_ICW4); /* Remap irq for slave */ idt_outb(PIC_ICW1_ICW4 | PIC_ICW1_ICW1, PIC2_ICW1); idt_outb(0x28, PIC2_ICW2); idt_outb(PIC_ICW3_SID2, PIC2_ICW3); - idt_outb(PIC_ICW4_808xMODE, PIC2_ICW4); + idt_outb(PIC_ICW4_808XMODE, PIC2_ICW4); /* Mask interrupts from PIC */