summaryrefslogtreecommitdiff
path: root/src/mainboard/google/jecht/variants
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2022-12-11 22:49:56 +0100
committerFelix Singer <felixsinger@posteo.net>2022-12-12 22:04:28 +0000
commitb6cbda27171b7f9cede5e58b6c25c52fbd8f0481 (patch)
tree08f908383f9a9566b08a4789875cb33a2752c711 /src/mainboard/google/jecht/variants
parentedec4d9b9a64cf08eb1a722bd7da5d9e58563b34 (diff)
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 <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/70594 Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/google/jecht/variants')
-rw-r--r--src/mainboard/google/jecht/variants/guado/include/variant/acpi/thermal.asl4
-rw-r--r--src/mainboard/google/jecht/variants/jecht/include/variant/acpi/thermal.asl4
-rw-r--r--src/mainboard/google/jecht/variants/rikku/include/variant/acpi/thermal.asl4
-rw-r--r--src/mainboard/google/jecht/variants/tidus/include/variant/acpi/thermal.asl12
4 files changed, 12 insertions, 12 deletions
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))
}