Felix Singer has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/60465 )
Change subject: ec/google/chromeec/acpi: Replace LAnd() operations with ACPI 2.0 syntax ......................................................................
ec/google/chromeec/acpi: Replace LAnd() operations with ACPI 2.0 syntax
Replace `LAnd (a, b)` with `a && b`.
Change-Id: I7d74e6a2ce4ee98c1c0f5b412e20661c5196735e Signed-off-by: Felix Singer felixsinger@posteo.net --- M src/ec/google/chromeec/acpi/battery.asl 1 file changed, 2 insertions(+), 3 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/65/60465/1
diff --git a/src/ec/google/chromeec/acpi/battery.asl b/src/ec/google/chromeec/acpi/battery.asl index fc9edc9..073905e 100644 --- a/src/ec/google/chromeec/acpi/battery.asl +++ b/src/ec/google/chromeec/acpi/battery.asl @@ -201,7 +201,7 @@ // 2: BATTERY REMAINING CAPACITY // Store (BTRA, Local1) - If (LAnd (Arg3, LAnd (ACEX, LNot (LAnd (BFDC, BFCG))))) { + If (Arg3 && ACEX && LNot (BFDC && BFCG)) { // On AC power and battery is neither charging // nor discharging. Linux expects a full battery // to report same capacity as last full charge. @@ -210,8 +210,7 @@
// See if within ~6% of full ShiftRight (Local2, 4, Local3) - If (LAnd (LGreater (Local1, Subtract (Local2, Local3)), - LLess (Local1, Add (Local2, Local3)))) + If (LGreater (Local1, Subtract (Local2, Local3)) && LLess (Local1, Add (Local2, Local3)))) { Store (Local2, Local1) }