mb/google/jecht/acpi: Replace LLessEqual(a,b) with ASL 2.0 syntax

Replace `LLessEqual (a, b)` with `a <= b`.

Change-Id: I4af47fdf5bab57c6bbfe417f55de35b074753120
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/70621
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:
Felix Singer 2022-12-12 00:21:53 +01:00
parent 5c8a94ae9e
commit 9a37ae6ef6
4 changed files with 42 additions and 42 deletions

View File

@ -110,7 +110,7 @@ Scope (\_TZ)
}
Method (_AC0) {
If (LLessEqual (\FLVL, 0)) {
If (\FLVL <= 0) {
Return (CTOK (FAN0_THRESHOLD_OFF))
} Else {
Return (CTOK (FAN0_THRESHOLD_ON))
@ -118,7 +118,7 @@ Scope (\_TZ)
}
Method (_AC1) {
If (LLessEqual (\FLVL, 1)) {
If (\FLVL <= 1) {
Return (CTOK (FAN1_THRESHOLD_OFF))
} Else {
Return (CTOK (FAN1_THRESHOLD_ON))
@ -126,7 +126,7 @@ Scope (\_TZ)
}
Method (_AC2) {
If (LLessEqual (\FLVL, 2)) {
If (\FLVL <= 2) {
Return (CTOK (FAN2_THRESHOLD_OFF))
} Else {
Return (CTOK (FAN2_THRESHOLD_ON))
@ -134,7 +134,7 @@ Scope (\_TZ)
}
Method (_AC3) {
If (LLessEqual (\FLVL, 3)) {
If (\FLVL <= 3) {
Return (CTOK (FAN3_THRESHOLD_OFF))
} Else {
Return (CTOK (FAN3_THRESHOLD_ON))
@ -142,7 +142,7 @@ Scope (\_TZ)
}
Method (_AC4) {
If (LLessEqual (\FLVL, 4)) {
If (\FLVL <= 4) {
Return (CTOK (0))
} Else {
Return (CTOK (0))
@ -158,7 +158,7 @@ Scope (\_TZ)
PowerResource (FNP0, 0, 0)
{
Method (_STA) {
If (LLessEqual (\FLVL, 0)) {
If (\FLVL <= 0) {
Return (One)
} Else {
Return (Zero)
@ -185,7 +185,7 @@ Scope (\_TZ)
PowerResource (FNP1, 0, 0)
{
Method (_STA) {
If (LLessEqual (\FLVL, 1)) {
If (\FLVL <= 1) {
Return (One)
} Else {
Return (Zero)
@ -212,7 +212,7 @@ Scope (\_TZ)
PowerResource (FNP2, 0, 0)
{
Method (_STA) {
If (LLessEqual (\FLVL, 2)) {
If (\FLVL <= 2) {
Return (One)
} Else {
Return (Zero)
@ -239,7 +239,7 @@ Scope (\_TZ)
PowerResource (FNP3, 0, 0)
{
Method (_STA) {
If (LLessEqual (\FLVL, 3)) {
If (\FLVL <= 3) {
Return (One)
} Else {
Return (Zero)
@ -266,7 +266,7 @@ Scope (\_TZ)
PowerResource (FNP4, 0, 0)
{
Method (_STA) {
If (LLessEqual (\FLVL, 4)) {
If (\FLVL <= 4) {
Return (One)
} Else {
Return (Zero)

View File

@ -110,7 +110,7 @@ Scope (\_TZ)
}
Method (_AC0) {
If (LLessEqual (\FLVL, 0)) {
If (\FLVL <= 0) {
Return (CTOK (FAN0_THRESHOLD_OFF))
} Else {
Return (CTOK (FAN0_THRESHOLD_ON))
@ -118,7 +118,7 @@ Scope (\_TZ)
}
Method (_AC1) {
If (LLessEqual (\FLVL, 1)) {
If (\FLVL <= 1) {
Return (CTOK (FAN1_THRESHOLD_OFF))
} Else {
Return (CTOK (FAN1_THRESHOLD_ON))
@ -126,7 +126,7 @@ Scope (\_TZ)
}
Method (_AC2) {
If (LLessEqual (\FLVL, 2)) {
If (\FLVL <= 2) {
Return (CTOK (FAN2_THRESHOLD_OFF))
} Else {
Return (CTOK (FAN2_THRESHOLD_ON))
@ -134,7 +134,7 @@ Scope (\_TZ)
}
Method (_AC3) {
If (LLessEqual (\FLVL, 3)) {
If (\FLVL <= 3) {
Return (CTOK (FAN3_THRESHOLD_OFF))
} Else {
Return (CTOK (FAN3_THRESHOLD_ON))
@ -142,7 +142,7 @@ Scope (\_TZ)
}
Method (_AC4) {
If (LLessEqual (\FLVL, 4)) {
If (\FLVL <= 4) {
Return (CTOK (0))
} Else {
Return (CTOK (0))
@ -158,7 +158,7 @@ Scope (\_TZ)
PowerResource (FNP0, 0, 0)
{
Method (_STA) {
If (LLessEqual (\FLVL, 0)) {
If (\FLVL <= 0) {
Return (One)
} Else {
Return (Zero)
@ -185,7 +185,7 @@ Scope (\_TZ)
PowerResource (FNP1, 0, 0)
{
Method (_STA) {
If (LLessEqual (\FLVL, 1)) {
If (\FLVL <= 1) {
Return (One)
} Else {
Return (Zero)
@ -212,7 +212,7 @@ Scope (\_TZ)
PowerResource (FNP2, 0, 0)
{
Method (_STA) {
If (LLessEqual (\FLVL, 2)) {
If (\FLVL <= 2) {
Return (One)
} Else {
Return (Zero)
@ -239,7 +239,7 @@ Scope (\_TZ)
PowerResource (FNP3, 0, 0)
{
Method (_STA) {
If (LLessEqual (\FLVL, 3)) {
If (\FLVL <= 3) {
Return (One)
} Else {
Return (Zero)
@ -266,7 +266,7 @@ Scope (\_TZ)
PowerResource (FNP4, 0, 0)
{
Method (_STA) {
If (LLessEqual (\FLVL, 4)) {
If (\FLVL <= 4) {
Return (One)
} Else {
Return (Zero)

View File

@ -110,7 +110,7 @@ Scope (\_TZ)
}
Method (_AC0) {
If (LLessEqual (\FLVL, 0)) {
If (\FLVL <= 0) {
Return (CTOK (FAN0_THRESHOLD_OFF))
} Else {
Return (CTOK (FAN0_THRESHOLD_ON))
@ -118,7 +118,7 @@ Scope (\_TZ)
}
Method (_AC1) {
If (LLessEqual (\FLVL, 1)) {
If (\FLVL <= 1) {
Return (CTOK (FAN1_THRESHOLD_OFF))
} Else {
Return (CTOK (FAN1_THRESHOLD_ON))
@ -126,7 +126,7 @@ Scope (\_TZ)
}
Method (_AC2) {
If (LLessEqual (\FLVL, 2)) {
If (\FLVL <= 2) {
Return (CTOK (FAN2_THRESHOLD_OFF))
} Else {
Return (CTOK (FAN2_THRESHOLD_ON))
@ -134,7 +134,7 @@ Scope (\_TZ)
}
Method (_AC3) {
If (LLessEqual (\FLVL, 3)) {
If (\FLVL <= 3) {
Return (CTOK (FAN3_THRESHOLD_OFF))
} Else {
Return (CTOK (FAN3_THRESHOLD_ON))
@ -142,7 +142,7 @@ Scope (\_TZ)
}
Method (_AC4) {
If (LLessEqual (\FLVL, 4)) {
If (\FLVL <= 4) {
Return (CTOK (0))
} Else {
Return (CTOK (0))
@ -158,7 +158,7 @@ Scope (\_TZ)
PowerResource (FNP0, 0, 0)
{
Method (_STA) {
If (LLessEqual (\FLVL, 0)) {
If (\FLVL <= 0) {
Return (One)
} Else {
Return (Zero)
@ -185,7 +185,7 @@ Scope (\_TZ)
PowerResource (FNP1, 0, 0)
{
Method (_STA) {
If (LLessEqual (\FLVL, 1)) {
If (\FLVL <= 1) {
Return (One)
} Else {
Return (Zero)
@ -212,7 +212,7 @@ Scope (\_TZ)
PowerResource (FNP2, 0, 0)
{
Method (_STA) {
If (LLessEqual (\FLVL, 2)) {
If (\FLVL <= 2) {
Return (One)
} Else {
Return (Zero)
@ -239,7 +239,7 @@ Scope (\_TZ)
PowerResource (FNP3, 0, 0)
{
Method (_STA) {
If (LLessEqual (\FLVL, 3)) {
If (\FLVL <= 3) {
Return (One)
} Else {
Return (Zero)
@ -266,7 +266,7 @@ Scope (\_TZ)
PowerResource (FNP4, 0, 0)
{
Method (_STA) {
If (LLessEqual (\FLVL, 4)) {
If (\FLVL <= 4) {
Return (One)
} Else {
Return (Zero)

View File

@ -125,13 +125,13 @@ Scope (\_TZ)
} ElseIf (THTB == 1) {
If (Local0 >= THERMAL_POLICY_0_THRESHOLD_ON) {
TTB0 ()
} ElseIf (LLessEqual (Local0, THERMAL_POLICY_1_THRESHOLD_OFF)) {
} ElseIf (Local0 <= THERMAL_POLICY_1_THRESHOLD_OFF) {
TTB2 ()
}
} Else {
If (Local0 < THERMAL_POLICY_1_THRESHOLD_OFF) {
TTB2 ()
} ElseIf (LLessEqual (Local0, THERMAL_POLICY_0_THRESHOLD_OFF)) {
} ElseIf (Local0 <= THERMAL_POLICY_0_THRESHOLD_OFF) {
TTB1 ()
}
}
@ -218,7 +218,7 @@ Scope (\_TZ)
}
Method (_AC0) {
If (LLessEqual (\FLVL, 0)) {
If (\FLVL <= 0) {
Return (CTOK (F0OF))
} Else {
Return (CTOK (F0ON))
@ -226,7 +226,7 @@ Scope (\_TZ)
}
Method (_AC1) {
If (LLessEqual (\FLVL, 1)) {
If (\FLVL <= 1) {
Return (CTOK (F1OF))
} Else {
Return (CTOK (F1ON))
@ -234,7 +234,7 @@ Scope (\_TZ)
}
Method (_AC2) {
If (LLessEqual (\FLVL, 2)) {
If (\FLVL <= 2) {
Return (CTOK (F2OF))
} Else {
Return (CTOK (F2ON))
@ -242,7 +242,7 @@ Scope (\_TZ)
}
Method (_AC3) {
If (LLessEqual (\FLVL, 3)) {
If (\FLVL <= 3) {
Return (CTOK (F3OF))
} Else {
Return (CTOK (F3ON))
@ -250,7 +250,7 @@ Scope (\_TZ)
}
Method (_AC4) {
If (LLessEqual (\FLVL, 4)) {
If (\FLVL <= 4) {
Return (CTOK (0))
} Else {
Return (CTOK (0))
@ -266,7 +266,7 @@ Scope (\_TZ)
PowerResource (FNP0, 0, 0)
{
Method (_STA) {
If (LLessEqual (\FLVL, 0)) {
If (\FLVL <= 0) {
Return (One)
} Else {
Return (Zero)
@ -293,7 +293,7 @@ Scope (\_TZ)
PowerResource (FNP1, 0, 0)
{
Method (_STA) {
If (LLessEqual (\FLVL, 1)) {
If (\FLVL <= 1) {
Return (One)
} Else {
Return (Zero)
@ -320,7 +320,7 @@ Scope (\_TZ)
PowerResource (FNP2, 0, 0)
{
Method (_STA) {
If (LLessEqual (\FLVL, 2)) {
If (\FLVL <= 2) {
Return (One)
} Else {
Return (Zero)
@ -347,7 +347,7 @@ Scope (\_TZ)
PowerResource (FNP3, 0, 0)
{
Method (_STA) {
If (LLessEqual (\FLVL, 3)) {
If (\FLVL <= 3) {
Return (One)
} Else {
Return (Zero)
@ -374,7 +374,7 @@ Scope (\_TZ)
PowerResource (FNP4, 0, 0)
{
Method (_STA) {
If (LLessEqual (\FLVL, 4)) {
If (\FLVL <= 4) {
Return (One)
} Else {
Return (Zero)