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>
This commit is contained in:
Felix Singer 2021-12-31 13:57:14 +01:00
parent c8c312c7e8
commit 0e790c6cba
2 changed files with 3 additions and 3 deletions

View File

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

View File

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