diff options
author | Felix Singer <felixsinger@posteo.net> | 2022-12-25 16:39:49 +0100 |
---|---|---|
committer | Elyes Haouas <ehaouas@noos.fr> | 2022-12-26 19:57:09 +0000 |
commit | eaa31d95c239a0a9b3c12a69ccbc71ac8f6f6034 (patch) | |
tree | 8cb3d930a1a491e93d4f9d44ef078177978dd7f3 /src/mainboard/lenovo/s230u | |
parent | c87c1abffbeb69af78d08452b194013cf01ee6ee (diff) |
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 <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/71514
Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/lenovo/s230u')
-rw-r--r-- | src/mainboard/lenovo/s230u/acpi/gpe.asl | 4 |
1 files changed, 2 insertions, 2 deletions
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 |