From 86bc2e708dc2600c5611b6573d43645e7d57e561 Mon Sep 17 00:00:00 2001 From: Felix Singer Date: Fri, 16 Dec 2022 04:40:39 +0100 Subject: tree: Replace Or(a,b,c) with ASL 2.0 syntax Replace `Or (a, b, c)` with `c = a | b`, respectively `c |= b` where possible. Change-Id: Icf194b248075f290de90fb4bc4e9a0cd9d76ec61 Signed-off-by: Felix Singer Reviewed-on: https://review.coreboot.org/c/coreboot/+/70846 Reviewed-by: Eric Lai Tested-by: build bot (Jenkins) --- src/mainboard/lenovo/s230u/acpi/gpe.asl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mainboard/lenovo/s230u/acpi') diff --git a/src/mainboard/lenovo/s230u/acpi/gpe.asl b/src/mainboard/lenovo/s230u/acpi/gpe.asl index 4f25557cf6..f9ba2096fb 100644 --- a/src/mainboard/lenovo/s230u/acpi/gpe.asl +++ b/src/mainboard/lenovo/s230u/acpi/gpe.asl @@ -6,7 +6,7 @@ Scope (_GPE) Method (PNOT, 2, Serialized) { Local0 = Arg0 << Arg1 Not(One << Arg1, Local1) - Or (Local0, And (Local1, PDET), PDET) + PDET = Local0 | And (Local1, PDET) If (PDET == Zero) { // Palm removed \_SB.PCI0.LPCB.EC0.HKEY.MHKQ (0x60B1) @@ -22,7 +22,7 @@ Scope (_GPE) Not (Local0, Local0) And (GIV0, Local0, GIV0) } Else { - Or (GIV0, Local0, GIV0) + GIV0 |= Local0 } } -- cgit v1.2.3