From b6cbda27171b7f9cede5e58b6c25c52fbd8f0481 Mon Sep 17 00:00:00 2001 From: Felix Singer Date: Sun, 11 Dec 2022 22:49:56 +0100 Subject: mb/google/jecht/acpi: Replace LEqual(a,b) with ASL 2.0 syntax Replace `LEqual (a, b)` with `a == b`. Change-Id: I74a6c949fa08a6eb712c053137369242e20e78fe Signed-off-by: Felix Singer Reviewed-on: https://review.coreboot.org/c/coreboot/+/70594 Reviewed-by: Eric Lai Tested-by: build bot (Jenkins) --- .../jecht/variants/guado/include/variant/acpi/thermal.asl | 4 ++-- .../jecht/variants/jecht/include/variant/acpi/thermal.asl | 4 ++-- .../jecht/variants/rikku/include/variant/acpi/thermal.asl | 4 ++-- .../jecht/variants/tidus/include/variant/acpi/thermal.asl | 12 ++++++------ 4 files changed, 12 insertions(+), 12 deletions(-) (limited to 'src/mainboard/google/jecht/variants') diff --git a/src/mainboard/google/jecht/variants/guado/include/variant/acpi/thermal.asl b/src/mainboard/google/jecht/variants/guado/include/variant/acpi/thermal.asl index 84aea6f849..6577ee0c46 100644 --- a/src/mainboard/google/jecht/variants/guado/include/variant/acpi/thermal.asl +++ b/src/mainboard/google/jecht/variants/guado/include/variant/acpi/thermal.asl @@ -64,12 +64,12 @@ Scope (\_TZ) Store (\_SB.PCI0.LPCB.SIO.ENVC.TIN3, Local0) // Check for "no reading available - If (LEqual (Local0, 0x80)) { + If (Local0 == 0x80) { Return (CTOK (FAN0_THRESHOLD_ON)) } // Check for invalid readings - If (LEqual (Local0, 255) || LEqual (Local0, 0)) { + If (Local0 == 255 || Local0 == 0) { Return (CTOK (FAN0_THRESHOLD_ON)) } diff --git a/src/mainboard/google/jecht/variants/jecht/include/variant/acpi/thermal.asl b/src/mainboard/google/jecht/variants/jecht/include/variant/acpi/thermal.asl index 84aea6f849..6577ee0c46 100644 --- a/src/mainboard/google/jecht/variants/jecht/include/variant/acpi/thermal.asl +++ b/src/mainboard/google/jecht/variants/jecht/include/variant/acpi/thermal.asl @@ -64,12 +64,12 @@ Scope (\_TZ) Store (\_SB.PCI0.LPCB.SIO.ENVC.TIN3, Local0) // Check for "no reading available - If (LEqual (Local0, 0x80)) { + If (Local0 == 0x80) { Return (CTOK (FAN0_THRESHOLD_ON)) } // Check for invalid readings - If (LEqual (Local0, 255) || LEqual (Local0, 0)) { + If (Local0 == 255 || Local0 == 0) { Return (CTOK (FAN0_THRESHOLD_ON)) } diff --git a/src/mainboard/google/jecht/variants/rikku/include/variant/acpi/thermal.asl b/src/mainboard/google/jecht/variants/rikku/include/variant/acpi/thermal.asl index 84aea6f849..6577ee0c46 100644 --- a/src/mainboard/google/jecht/variants/rikku/include/variant/acpi/thermal.asl +++ b/src/mainboard/google/jecht/variants/rikku/include/variant/acpi/thermal.asl @@ -64,12 +64,12 @@ Scope (\_TZ) Store (\_SB.PCI0.LPCB.SIO.ENVC.TIN3, Local0) // Check for "no reading available - If (LEqual (Local0, 0x80)) { + If (Local0 == 0x80) { Return (CTOK (FAN0_THRESHOLD_ON)) } // Check for invalid readings - If (LEqual (Local0, 255) || LEqual (Local0, 0)) { + If (Local0 == 255 || Local0 == 0) { Return (CTOK (FAN0_THRESHOLD_ON)) } diff --git a/src/mainboard/google/jecht/variants/tidus/include/variant/acpi/thermal.asl b/src/mainboard/google/jecht/variants/tidus/include/variant/acpi/thermal.asl index 3aa8fc3e62..4d5ae4d184 100644 --- a/src/mainboard/google/jecht/variants/tidus/include/variant/acpi/thermal.asl +++ b/src/mainboard/google/jecht/variants/tidus/include/variant/acpi/thermal.asl @@ -107,22 +107,22 @@ Scope (\_TZ) Store (\_SB.PCI0.LPCB.SIO.ENVC.TIN2, Local0) // Check for "no reading available - If (LEqual (Local0, 0x80)) { + If (Local0 == 0x80) { Store (THERMAL_POLICY_0_THRESHOLD_ON, Local0) } // Check for invalid readings - If (LEqual (Local0, 255) || LEqual (Local0, 0)) { + If (Local0 == 255 || Local0 == 0) { Store (THERMAL_POLICY_0_THRESHOLD_ON, Local0) } - If (LEqual (THTB, 2)) { + If (THTB == 2) { If (Local0 >= THERMAL_POLICY_0_THRESHOLD_ON) { TTB0 () } ElseIf (Local0 >= THERMAL_POLICY_1_THRESHOLD_ON) { TTB1 () } - } ElseIf (LEqual (THTB, 1)) { + } ElseIf (THTB == 1) { If (Local0 >= THERMAL_POLICY_0_THRESHOLD_ON) { TTB0 () } ElseIf (LLessEqual (Local0, THERMAL_POLICY_1_THRESHOLD_OFF)) { @@ -172,12 +172,12 @@ Scope (\_TZ) Store (\_SB.PCI0.LPCB.SIO.ENVC.TIN3, Local0) // Check for "no reading available - If (LEqual (Local0, 0x80)) { + If (Local0 == 0x80) { Return (CTOK (FAN0_0_THRESHOLD_ON)) } // Check for invalid readings - If (LEqual (Local0, 255) || LEqual (Local0, 0)) { + If (Local0 == 255 || Local0 == 0) { Return (CTOK (FAN0_0_THRESHOLD_ON)) } -- cgit v1.2.3