summaryrefslogtreecommitdiffstats
path: root/src/ec
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2022-12-25 16:25:06 +0100
committerElyes Haouas <ehaouas@noos.fr>2022-12-26 19:56:04 +0000
commitc87c1abffbeb69af78d08452b194013cf01ee6ee (patch)
tree378cc9725f7d2e6a9e40b430a057db83b164fb64 /src/ec
parent25b717ad841502cf1393ae52ea4efbf2d23683fb (diff)
downloadcoreboot-c87c1abffbeb69af78d08452b194013cf01ee6ee.tar.gz
coreboot-c87c1abffbeb69af78d08452b194013cf01ee6ee.tar.bz2
coreboot-c87c1abffbeb69af78d08452b194013cf01ee6ee.zip
tree/acpi: Replace Not(a) with ASL 2.0 syntax
Replace `Not (a)` with `~a`. Change-Id: I53993fb7b46b3614d18ee001323f17efacbf04c1 Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/71513 Reviewed-by: Elyes Haouas <ehaouas@noos.fr> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/ec')
-rw-r--r--src/ec/google/chromeec/acpi/battery.asl2
-rw-r--r--src/ec/google/chromeec/acpi/ec.asl2
-rw-r--r--src/ec/quanta/it8518/acpi/ec.asl2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/ec/google/chromeec/acpi/battery.asl b/src/ec/google/chromeec/acpi/battery.asl
index 5e881e54c883..013a5e7c7b63 100644
--- a/src/ec/google/chromeec/acpi/battery.asl
+++ b/src/ec/google/chromeec/acpi/battery.asl
@@ -44,7 +44,7 @@ Method (BSTA, 1, Serialized)
Return (Zero)
}
- If (Not(BTSW (Arg0)) & BTEX) {
+ If (~BTSW (Arg0) & BTEX) {
Local0 = 0x1F
} Else {
Local0 = 0x0F
diff --git a/src/ec/google/chromeec/acpi/ec.asl b/src/ec/google/chromeec/acpi/ec.asl
index ce81880051d4..af594683c7e0 100644
--- a/src/ec/google/chromeec/acpi/ec.asl
+++ b/src/ec/google/chromeec/acpi/ec.asl
@@ -630,7 +630,7 @@ Device (EC0)
*/
Method (UPPC, 1, Serialized)
{
- USPP &= Not (1 << Arg0)
+ USPP &= ~(1 << Arg0)
}
#endif
diff --git a/src/ec/quanta/it8518/acpi/ec.asl b/src/ec/quanta/it8518/acpi/ec.asl
index 38c579899f4a..b05b3c7ad0fb 100644
--- a/src/ec/quanta/it8518/acpi/ec.asl
+++ b/src/ec/quanta/it8518/acpi/ec.asl
@@ -547,7 +547,7 @@ Device (EC0)
\PWRS = ACPW
// Initialize LID switch state
- \LIDS = NOT(HPLD)
+ \LIDS = ~HPLD
// Enable OS control of fan speed
// TODO FCOS = One