summaryrefslogtreecommitdiff
path: root/src/ec
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2021-12-31 14:34:36 +0100
committerFelix Singer <felixsinger@posteo.net>2022-01-01 14:25:27 +0000
commitecc63d9bf410a60de7c353d57d3e4d8954963595 (patch)
tree24d488b003ac20d00e651b3cb05033a6e337a6d5 /src/ec
parent9dafc29caea9567eb4f98ae1d2e4de7d0e5f787a (diff)
ec/quanta/it8518/acpi: Replace LNot() with ASL 2.0 syntax
Replace `LNot (a)` with `!a`. Change-Id: I98ac7a9c1cd16609cf6bd38e1bd9bf8cf54817fb Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/60595 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
Diffstat (limited to 'src/ec')
-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 5b51c892fc..4fcc30c82d 100644
--- a/src/ec/quanta/it8518/acpi/battery.asl
+++ b/src/ec/quanta/it8518/acpi/battery.asl
@@ -275,7 +275,7 @@ Device (BATX)
}
Else
{
- If (LNot (AND (Local0, 2)))
+ If (!(AND (Local0, 2)))
{
// Battery is not charging
Store (Zero, Local1)
@@ -306,7 +306,7 @@ Device (BATX)
Store (ECRC, Local1)
}
- If (BFWK && ACPW && LNot (Local0))
+ If (BFWK && ACPW && !Local0)
{
// On AC power and battery is neither charging
// nor discharging. Linux expects a full battery