From ae2d14b4a1a1a13c03c838680a8d223cb7787504 Mon Sep 17 00:00:00 2001 From: Felix Singer Date: Thu, 30 Dec 2021 00:23:46 +0100 Subject: ec/quanta/ene_kb3940q/acpi: Replace Subtract(a,b,c) with ASL 2.0 syntax Replace `Subtract (a, b, c)` with `c = a - b`. Change-Id: I4a0bf83013065176782b18d0eb40d96c11a54791 Signed-off-by: Felix Singer Reviewed-on: https://review.coreboot.org/c/coreboot/+/60477 Tested-by: build bot (Jenkins) Reviewed-by: HAOUAS Elyes --- src/ec/quanta/ene_kb3940q/acpi/ec.asl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/ec/quanta/ene_kb3940q/acpi/ec.asl b/src/ec/quanta/ene_kb3940q/acpi/ec.asl index 4da16eabda..bc84bf1823 100644 --- a/src/ec/quanta/ene_kb3940q/acpi/ec.asl +++ b/src/ec/quanta/ene_kb3940q/acpi/ec.asl @@ -177,7 +177,7 @@ Device (EC0) Printf ("Pstate Event 0x0E") Store(\_SB.CP00._PPC, Local0) - Subtract(PPCM, 0x01, Local1) + Local1 = PPCM - 1 If(LLess(Local0, Local1)) { Increment(Local0) -- cgit v1.2.3