From f5b162e55dcf2720bebd15ae192ce10ef320ffc5 Mon Sep 17 00:00:00 2001 From: Felix Singer Date: Thu, 30 Dec 2021 00:21:21 +0100 Subject: [PATCH] superio/winbond/w83627hf/acpi: Replace Subtract(a,b,c) with ASL 2.0 syntax Replace `Subtract (a, b, c)` with `c = a - b`. Change-Id: Idd97e662ec4be7092a655bc298dffb6d826bc497 Signed-off-by: Felix Singer Reviewed-on: https://review.coreboot.org/c/coreboot/+/60476 Tested-by: build bot (Jenkins) Reviewed-by: HAOUAS Elyes --- src/superio/winbond/w83627hf/acpi/superio.asl | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/superio/winbond/w83627hf/acpi/superio.asl b/src/superio/winbond/w83627hf/acpi/superio.asl index 20610301d6..5db7ca8171 100644 --- a/src/superio/winbond/w83627hf/acpi/superio.asl +++ b/src/superio/winbond/w83627hf/acpi/superio.asl @@ -583,7 +583,7 @@ Device(SIO) { /* DMA off */ Store (0x04, DMA0) /* IRQ */ - Subtract(FindSetLeftBit (IRQL), 1, IRQ0) + IRQ0 = FindSetLeftBit (IRQL) - 1 /* Activate */ Store (One, ACTR) EXIT_CONFIG_MODE () @@ -701,7 +701,7 @@ Device(SIO) { Divide(IOA0, 256, Local0, Local1) - Subtract(FindSetLeftBit (IRQL), 1, Local3) + Local3 = FindSetLeftBit (IRQL) - 1 ENTER_CONFIG_MODE (2) Store (Local0, IO1L) @@ -826,7 +826,7 @@ Device(SIO) { Divide(IOA0, 256, Local0, Local1) - Subtract(FindSetLeftBit (IRQL), 1, Local3) + Local3 = FindSetLeftBit (IRQL) - 1 ENTER_CONFIG_MODE (3) Store (Local0, IO1L) @@ -951,7 +951,7 @@ Device(SIO) { Divide(IOA0, 256, Local0, Local1) - Subtract(FindSetLeftBit (IRQL), 1, Local3) + Local3 = FindSetLeftBit (IRQL) - 1 ENTER_CONFIG_MODE (3) Store (Local0, IO1L) @@ -1038,7 +1038,7 @@ Device(SIO) { Divide(IOA0, 256, Local0, Local1) - Subtract(FindSetLeftBit (IRQL), 1, Local3) + Local3 = FindSetLeftBit (IRQL) - 1 ENTER_CONFIG_MODE (6) Store (Local0, IO1L) @@ -1143,7 +1143,7 @@ Device(SIO) { Divide(IOA0, 256, Local0, Local1) Divide(IOA1, 256, Local2, Local3) - Subtract(FindSetLeftBit (IRQL), 1, Local4) + Local4 = FindSetLeftBit (IRQL) - 1 ENTER_CONFIG_MODE (5) Store (Local0, IO1L) @@ -1222,7 +1222,7 @@ Device(SIO) { }) CreateWordField (Arg0, IRQX._INT, IRQL) - Subtract(FindSetLeftBit (IRQL), 1, Local0) + Local0 = FindSetLeftBit (IRQL) - 1 ENTER_CONFIG_MODE (5) Store (Local0, IRQ1)