aboutsummaryrefslogtreecommitdiff
path: root/src/ec/google
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2021-12-29 15:45:24 +0100
committerFelix Singer <felixsinger@posteo.net>2021-12-30 16:24:14 +0000
commit2318677866eb62df0a7ef2dd29f8970598822beb (patch)
tree00e70f6d8573293b40de64537ff63bb7f2315672 /src/ec/google
parentdac04084927b84373dc89349b2c5efc2cf68a78c (diff)
ec/google/chromeec/acpi: Replace LAnd() with ASL 2.0 syntax
Replace `LAnd (a, b)` with `a && b`. Change-Id: I7d74e6a2ce4ee98c1c0f5b412e20661c5196735e Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/60465 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
Diffstat (limited to 'src/ec/google')
-rw-r--r--src/ec/google/chromeec/acpi/battery.asl5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ec/google/chromeec/acpi/battery.asl b/src/ec/google/chromeec/acpi/battery.asl
index fc9edc9d90..7569728e05 100644
--- a/src/ec/google/chromeec/acpi/battery.asl
+++ b/src/ec/google/chromeec/acpi/battery.asl
@@ -201,7 +201,7 @@ Method (BBST, 4, Serialized)
// 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 @@ Method (BBST, 4, Serialized)
// 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)
}