From eaa31d95c239a0a9b3c12a69ccbc71ac8f6f6034 Mon Sep 17 00:00:00 2001 From: Felix Singer Date: Sun, 25 Dec 2022 16:39:49 +0100 Subject: mb/lenovo/s230u/acpi: Replace Not(a, b) with ASL 2.0 syntax Replace `Not (a, b)` with `b = ~a`. Change-Id: I0f18119c8e91222e59a56b8509f12c6ece6d04ce Signed-off-by: Felix Singer Reviewed-on: https://review.coreboot.org/c/coreboot/+/71514 Reviewed-by: Elyes Haouas Tested-by: build bot (Jenkins) --- src/mainboard/lenovo/s230u/acpi/gpe.asl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mainboard') diff --git a/src/mainboard/lenovo/s230u/acpi/gpe.asl b/src/mainboard/lenovo/s230u/acpi/gpe.asl index 7396c02bc3..19531952f9 100644 --- a/src/mainboard/lenovo/s230u/acpi/gpe.asl +++ b/src/mainboard/lenovo/s230u/acpi/gpe.asl @@ -5,7 +5,7 @@ Scope (_GPE) Name (PDET, Zero) Method (PNOT, 2, Serialized) { Local0 = Arg0 << Arg1 - Not(One << Arg1, Local1) + Local1 = ~(1 << Arg1) PDET = Local0 | (Local1 & PDET) If (PDET == Zero) { // Palm removed @@ -19,7 +19,7 @@ Scope (_GPE) Method (TINV, 2, Serialized) { Local0 = One << Arg1 If (Arg0 == Zero) { - Not (Local0, Local0) + Local0 = ~Local0 GIV0 &= Local0 } Else { GIV0 |= Local0 -- cgit v1.2.3