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>
This commit is contained in:
parent
edec4d9b9a
commit
b6cbda2717
|
@ -16,7 +16,7 @@ Scope (\_SB.PCI0.RP01)
|
||||||
{
|
{
|
||||||
Store (JECHT_NIC_WAKE_GPIO, Local0)
|
Store (JECHT_NIC_WAKE_GPIO, Local0)
|
||||||
|
|
||||||
If (LEqual (Arg0, 1)) {
|
If (Arg0 == 1) {
|
||||||
// Enable GPIO as wake source
|
// Enable GPIO as wake source
|
||||||
\_SB.PCI0.LPCB.GPIO.GWAK (Local0)
|
\_SB.PCI0.LPCB.GPIO.GWAK (Local0)
|
||||||
}
|
}
|
||||||
|
@ -38,7 +38,7 @@ Scope (\_SB.PCI0.RP02)
|
||||||
{
|
{
|
||||||
Store (JECHT_WLAN_WAKE_GPIO, Local0)
|
Store (JECHT_WLAN_WAKE_GPIO, Local0)
|
||||||
|
|
||||||
If (LEqual (Arg0, 1)) {
|
If (Arg0 == 1) {
|
||||||
// Enable GPIO as wake source
|
// Enable GPIO as wake source
|
||||||
\_SB.PCI0.LPCB.GPIO.GWAK (Local0)
|
\_SB.PCI0.LPCB.GPIO.GWAK (Local0)
|
||||||
}
|
}
|
||||||
|
|
|
@ -64,12 +64,12 @@ Scope (\_TZ)
|
||||||
Store (\_SB.PCI0.LPCB.SIO.ENVC.TIN3, Local0)
|
Store (\_SB.PCI0.LPCB.SIO.ENVC.TIN3, Local0)
|
||||||
|
|
||||||
// Check for "no reading available
|
// Check for "no reading available
|
||||||
If (LEqual (Local0, 0x80)) {
|
If (Local0 == 0x80) {
|
||||||
Return (CTOK (FAN0_THRESHOLD_ON))
|
Return (CTOK (FAN0_THRESHOLD_ON))
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check for invalid readings
|
// Check for invalid readings
|
||||||
If (LEqual (Local0, 255) || LEqual (Local0, 0)) {
|
If (Local0 == 255 || Local0 == 0) {
|
||||||
Return (CTOK (FAN0_THRESHOLD_ON))
|
Return (CTOK (FAN0_THRESHOLD_ON))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -64,12 +64,12 @@ Scope (\_TZ)
|
||||||
Store (\_SB.PCI0.LPCB.SIO.ENVC.TIN3, Local0)
|
Store (\_SB.PCI0.LPCB.SIO.ENVC.TIN3, Local0)
|
||||||
|
|
||||||
// Check for "no reading available
|
// Check for "no reading available
|
||||||
If (LEqual (Local0, 0x80)) {
|
If (Local0 == 0x80) {
|
||||||
Return (CTOK (FAN0_THRESHOLD_ON))
|
Return (CTOK (FAN0_THRESHOLD_ON))
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check for invalid readings
|
// Check for invalid readings
|
||||||
If (LEqual (Local0, 255) || LEqual (Local0, 0)) {
|
If (Local0 == 255 || Local0 == 0) {
|
||||||
Return (CTOK (FAN0_THRESHOLD_ON))
|
Return (CTOK (FAN0_THRESHOLD_ON))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -64,12 +64,12 @@ Scope (\_TZ)
|
||||||
Store (\_SB.PCI0.LPCB.SIO.ENVC.TIN3, Local0)
|
Store (\_SB.PCI0.LPCB.SIO.ENVC.TIN3, Local0)
|
||||||
|
|
||||||
// Check for "no reading available
|
// Check for "no reading available
|
||||||
If (LEqual (Local0, 0x80)) {
|
If (Local0 == 0x80) {
|
||||||
Return (CTOK (FAN0_THRESHOLD_ON))
|
Return (CTOK (FAN0_THRESHOLD_ON))
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check for invalid readings
|
// Check for invalid readings
|
||||||
If (LEqual (Local0, 255) || LEqual (Local0, 0)) {
|
If (Local0 == 255 || Local0 == 0) {
|
||||||
Return (CTOK (FAN0_THRESHOLD_ON))
|
Return (CTOK (FAN0_THRESHOLD_ON))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -107,22 +107,22 @@ Scope (\_TZ)
|
||||||
Store (\_SB.PCI0.LPCB.SIO.ENVC.TIN2, Local0)
|
Store (\_SB.PCI0.LPCB.SIO.ENVC.TIN2, Local0)
|
||||||
|
|
||||||
// Check for "no reading available
|
// Check for "no reading available
|
||||||
If (LEqual (Local0, 0x80)) {
|
If (Local0 == 0x80) {
|
||||||
Store (THERMAL_POLICY_0_THRESHOLD_ON, Local0)
|
Store (THERMAL_POLICY_0_THRESHOLD_ON, Local0)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check for invalid readings
|
// Check for invalid readings
|
||||||
If (LEqual (Local0, 255) || LEqual (Local0, 0)) {
|
If (Local0 == 255 || Local0 == 0) {
|
||||||
Store (THERMAL_POLICY_0_THRESHOLD_ON, Local0)
|
Store (THERMAL_POLICY_0_THRESHOLD_ON, Local0)
|
||||||
}
|
}
|
||||||
|
|
||||||
If (LEqual (THTB, 2)) {
|
If (THTB == 2) {
|
||||||
If (Local0 >= THERMAL_POLICY_0_THRESHOLD_ON) {
|
If (Local0 >= THERMAL_POLICY_0_THRESHOLD_ON) {
|
||||||
TTB0 ()
|
TTB0 ()
|
||||||
} ElseIf (Local0 >= THERMAL_POLICY_1_THRESHOLD_ON) {
|
} ElseIf (Local0 >= THERMAL_POLICY_1_THRESHOLD_ON) {
|
||||||
TTB1 ()
|
TTB1 ()
|
||||||
}
|
}
|
||||||
} ElseIf (LEqual (THTB, 1)) {
|
} ElseIf (THTB == 1) {
|
||||||
If (Local0 >= THERMAL_POLICY_0_THRESHOLD_ON) {
|
If (Local0 >= THERMAL_POLICY_0_THRESHOLD_ON) {
|
||||||
TTB0 ()
|
TTB0 ()
|
||||||
} ElseIf (LLessEqual (Local0, THERMAL_POLICY_1_THRESHOLD_OFF)) {
|
} ElseIf (LLessEqual (Local0, THERMAL_POLICY_1_THRESHOLD_OFF)) {
|
||||||
|
@ -172,12 +172,12 @@ Scope (\_TZ)
|
||||||
Store (\_SB.PCI0.LPCB.SIO.ENVC.TIN3, Local0)
|
Store (\_SB.PCI0.LPCB.SIO.ENVC.TIN3, Local0)
|
||||||
|
|
||||||
// Check for "no reading available
|
// Check for "no reading available
|
||||||
If (LEqual (Local0, 0x80)) {
|
If (Local0 == 0x80) {
|
||||||
Return (CTOK (FAN0_0_THRESHOLD_ON))
|
Return (CTOK (FAN0_0_THRESHOLD_ON))
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check for invalid readings
|
// Check for invalid readings
|
||||||
If (LEqual (Local0, 255) || LEqual (Local0, 0)) {
|
If (Local0 == 255 || Local0 == 0) {
|
||||||
Return (CTOK (FAN0_0_THRESHOLD_ON))
|
Return (CTOK (FAN0_0_THRESHOLD_ON))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue