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 <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/60476
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
This commit is contained in:
Felix Singer 2021-12-30 00:21:21 +01:00
parent 73078edd5e
commit f5b162e55d
1 changed files with 7 additions and 7 deletions

View File

@ -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)