summaryrefslogtreecommitdiff
path: root/src/ec/quanta
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2022-12-16 04:07:23 +0100
committerFelix Held <felix-coreboot@felixheld.de>2022-12-19 16:13:50 +0000
commitf3649f03f3fd0f5ff8b6e08a3a2e313ed670d3fa (patch)
tree9736200e367d5c4bbe48346e05aedec46ea782f9 /src/ec/quanta
parent848c37da42572df8930bb9651c70a2fab91ba131 (diff)
tree: Replace XOr(a,b,c) with ASL 2.0 syntax
Replace `XOr (a, b, c)` with `c = a ^ b`, respectively `c ^= b` where possible. Change-Id: Ic5f67684bbd4ea115c4dae8a4417d88bea0d6b77 Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/70843 Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
Diffstat (limited to 'src/ec/quanta')
-rw-r--r--src/ec/quanta/it8518/acpi/battery.asl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ec/quanta/it8518/acpi/battery.asl b/src/ec/quanta/it8518/acpi/battery.asl
index 7a3f77467a..e63cefb7c5 100644
--- a/src/ec/quanta/it8518/acpi/battery.asl
+++ b/src/ec/quanta/it8518/acpi/battery.asl
@@ -106,7 +106,7 @@ Device (BATX)
// ACPI spec : 0 - mWh : 1 - mAh
//
Local7 = SBCM
- XOr (Local7, One, PBIF[0])
+ PBIF[0] = Local7 ^ One
//
// Information ID 0 -
@@ -282,7 +282,7 @@ Device (BATX)
}
}
- XOr (DerefOf (PBIF[0]), One, Local6)
+ Local6 = DerefOf (PBIF[0]) ^ One
If (Local6)
{