diff options
author | Felix Singer <felixsinger@posteo.net> | 2021-12-31 13:57:14 +0100 |
---|---|---|
committer | Felix Singer <felixsinger@posteo.net> | 2022-01-01 14:09:24 +0000 |
commit | 0e790c6cbab39f81f816b4c5380d8b8acf0ce068 (patch) | |
tree | 3d23bb2faeec2cc297d34b1eaffa2d948298fd23 /src/ec/smsc | |
parent | c8c312c7e8ae6da24a72489c6faef2bea2a879cf (diff) |
ec/smsc/mec1308/acpi: Replace Increment() with ASL 2.0 syntax
Replace `Increment(a)` with `a++`.
Change-Id: Ib2154767cfc547ca9bd0a23937d50689be13fbcf
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/60582
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
Diffstat (limited to 'src/ec/smsc')
-rw-r--r-- | src/ec/smsc/mec1308/acpi/battery.asl | 4 | ||||
-rw-r--r-- | src/ec/smsc/mec1308/acpi/ec.asl | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/ec/smsc/mec1308/acpi/battery.asl b/src/ec/smsc/mec1308/acpi/battery.asl index 2aa5acea71..59d6c4f69e 100644 --- a/src/ec/smsc/mec1308/acpi/battery.asl +++ b/src/ec/smsc/mec1308/acpi/battery.asl @@ -135,7 +135,7 @@ Device (BAT0) Store (SWAB (BTPR), Local1) If (LNotEqual (Local1, 0xFFFFFFFF) && LGreaterEqual (Local1, 0x8000)) { Xor (Local1, 0xFFFF, Local1) - Increment (Local1) + Local1++ } Store (Local1, PBST[1]) @@ -145,7 +145,7 @@ Device (BAT0) Store (SWAB (BTRA), Local1) If (LNotEqual (Local1, 0xFFFFFFFF) && LGreaterEqual (Local1, 0x8000)) { Xor (Local1, 0xFFFF, Local1) - Increment (Local1) + Local1++ } If (BFWK && ACEX && LNot (Local0)) { diff --git a/src/ec/smsc/mec1308/acpi/ec.asl b/src/ec/smsc/mec1308/acpi/ec.asl index c7b180dc3e..23b4c692d6 100644 --- a/src/ec/smsc/mec1308/acpi/ec.asl +++ b/src/ec/smsc/mec1308/acpi/ec.asl @@ -69,7 +69,7 @@ Device (EC0) // Force a read of CPU temperature Store (CPUT, Local0) /* So that we don't get a warning that Local0 is unused. */ - Increment (Local0) + Local0++ } PowerResource (FNP0, 0, 0) |