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/ec/google/chromeec/acpi/battery.asl | 2 +- src/ec/google/chromeec/acpi/ec.asl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ec/google') diff --git a/src/ec/google/chromeec/acpi/battery.asl b/src/ec/google/chromeec/acpi/battery.asl index 114a10c36c..a98117126b 100644 --- a/src/ec/google/chromeec/acpi/battery.asl +++ b/src/ec/google/chromeec/acpi/battery.asl @@ -175,7 +175,7 @@ Method (BBST, 4, Serialized) // Check for critical battery level If (BFCR) { - Or (Local1, 0x04, Local1) + Local1 |= 4 } Arg1[0] = Local1 diff --git a/src/ec/google/chromeec/acpi/ec.asl b/src/ec/google/chromeec/acpi/ec.asl index 7a17c54cfc..59f14d1d08 100644 --- a/src/ec/google/chromeec/acpi/ec.asl +++ b/src/ec/google/chromeec/acpi/ec.asl @@ -621,7 +621,7 @@ Device (EC0) */ Method (UPPS, 1, Serialized) { - Or (USPP, 1 << Arg0, USPP) + USPP |= 1 << Arg0 } /* -- cgit v1.2.3