mb/google/cyan/acpi: Replace LEqual(a,b) with ASL 2.0 syntax

Replace `LEqual (a, b)` with `a == b`.

Change-Id: I9441988c0bf6d07641595a3b501c2af5230ba131
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/70596
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-11 23:02:09 +01:00
parent 2ed8992d73
commit 096158d6e0
8 changed files with 25 additions and 26 deletions

View File

@ -39,7 +39,7 @@ Scope (\_SB.PCI0.I2C2)
Method (_STA) Method (_STA)
{ {
If (LEqual (\S2EN, 1)) { If (\S2EN == 1) {
Return (0xF) Return (0xF)
} Else { } Else {
Return (0x0) Return (0x0)

View File

@ -29,7 +29,7 @@ Scope (\_SB.PCI0.I2C1)
Method (_STA) Method (_STA)
{ {
If (LEqual (\S1EN, 1)) { If (\S1EN == 1) {
Return (0xF) Return (0xF)
} Else { } Else {
Return (0x0) Return (0x0)

View File

@ -28,7 +28,7 @@ Scope (\_SB.PCI0.I2C1)
Method (_STA) Method (_STA)
{ {
If (LEqual (\S1EN, 1)) { If (\S1EN == 1) {
Return (0xF) Return (0xF)
} Else { } Else {
Return (0x0) Return (0x0)

View File

@ -14,13 +14,12 @@ Scope (\_SB.PCI0.I2C1)
*/ */
Method (_DSM, 4, NotSerialized) Method (_DSM, 4, NotSerialized)
{ {
If (LEqual (Arg0, ToUUID ( If (Arg0 == ToUUID ("3cdff6f7-4267-4555-ad05-b30a3d8938de"))
"3cdff6f7-4267-4555-ad05-b30a3d8938de")))
{ {
// DSM Revision // DSM Revision
If (LEqual (Arg2, Zero)) If (Arg2 == Zero)
{ {
If (LEqual (Arg1, One)) If (Arg1 == One)
{ {
Return (Buffer (One) Return (Buffer (One)
{ {
@ -36,7 +35,7 @@ Scope (\_SB.PCI0.I2C1)
} }
} }
// HID Function // HID Function
If (LEqual (Arg2, One)) If (Arg2 == One)
{ {
Return (0x20) Return (0x20)
} }
@ -71,7 +70,7 @@ Scope (\_SB.PCI0.I2C1)
Method (_STA) Method (_STA)
{ {
If (LEqual (\S1EN, 1)) { If (\S1EN == 1) {
Return (0xF) Return (0xF)
} Else { } Else {
Return (0x0) Return (0x0)

View File

@ -25,7 +25,7 @@ Scope (\_SB.PCI0.I2C6)
Method (_STA) Method (_STA)
{ {
If (LEqual (\S6EN, 1)) { If (\S6EN == 1) {
Return (0xF) Return (0xF)
} Else { } Else {
Return (0x0) Return (0x0)

View File

@ -24,7 +24,7 @@ Scope (\_SB.PCI0.I2C6)
Method (_STA) Method (_STA)
{ {
If (LEqual (\S6EN, 1)) { If (\S6EN == 1) {
Return (0xF) Return (0xF)
} Else { } Else {
Return (0x0) Return (0x0)

View File

@ -156,7 +156,7 @@ Device (DPTF)
Method (_STA) Method (_STA)
{ {
If (LEqual (\DPTE, One)) { If (\DPTE == One) {
Return (0xF) Return (0xF)
} Else { } Else {
Return (0x0) Return (0x0)
@ -173,7 +173,7 @@ Device (DPTF)
Method (_OSC, 4, Serialized) Method (_OSC, 4, Serialized)
{ {
/* Check for Passive Policy UUID */ /* Check for Passive Policy UUID */
If (LEqual (DeRefOf (IDSP[0]), Arg0)) { If (DeRefOf (IDSP[0]) == Arg0) {
/* Initialize Thermal Devices */ /* Initialize Thermal Devices */
^TINI () ^TINI ()
@ -192,7 +192,7 @@ Device (DPTF)
/* Return TRT table defined by Terra2 or Terra3 mainboard */ /* Return TRT table defined by Terra2 or Terra3 mainboard */
Method (_TRT) Method (_TRT)
{ {
If (Lequal(\_SB.GPID, TERRA2_PROJECT_ID)) If (\_SB.GPID == TERRA2_PROJECT_ID)
{ {
Return (\_SB.TRT2) Return (\_SB.TRT2)
} Else { } Else {

View File

@ -9,17 +9,17 @@ Method (TEVT, 1, NotSerialized)
Store (ToInteger (Arg0), Local0) Store (ToInteger (Arg0), Local0)
#ifdef DPTF_TSR0_SENSOR_ID #ifdef DPTF_TSR0_SENSOR_ID
If (LEqual (Local0, DPTF_TSR0_SENSOR_ID)) { If (Local0 == DPTF_TSR0_SENSOR_ID) {
Notify (^TSR0, 0x90) Notify (^TSR0, 0x90)
} }
#endif #endif
#ifdef DPTF_TSR1_SENSOR_ID #ifdef DPTF_TSR1_SENSOR_ID
If (LEqual (Local0, DPTF_TSR1_SENSOR_ID)) { If (Local0 == DPTF_TSR1_SENSOR_ID) {
Notify (^TSR1, 0x90) Notify (^TSR1, 0x90)
} }
#endif #endif
#ifdef DPTF_TSR2_SENSOR_ID #ifdef DPTF_TSR2_SENSOR_ID
If (LEqual (Local0, DPTF_TSR2_SENSOR_ID)) { If (Local0 == DPTF_TSR2_SENSOR_ID) {
Notify (^TSR2, 0x90) Notify (^TSR2, 0x90)
} }
#endif #endif
@ -52,7 +52,7 @@ Device (TSR0)
Method (_STA) Method (_STA)
{ {
If (LEqual (\DPTE, One)) { If (\DPTE == One) {
Return (0xF) Return (0xF)
} Else { } Else {
Return (0x0) Return (0x0)
@ -67,7 +67,7 @@ Device (TSR0)
/* Return passive thermal point defined by Terra2 or Terra3 mainboard */ /* Return passive thermal point defined by Terra2 or Terra3 mainboard */
Method (_PSV) Method (_PSV)
{ {
If (LEqual (\_SB.GPID, TERRA2_PROJECT_ID)) If (\_SB.GPID == TERRA2_PROJECT_ID)
{ {
Return (CTOK (DPTF_TERRA2_TSR0_PASSIVE)) Return (CTOK (DPTF_TERRA2_TSR0_PASSIVE))
} Else { } Else {
@ -78,7 +78,7 @@ Device (TSR0)
/* Return critical thermal point defined by Terra2 or Terra3 mainboard */ /* Return critical thermal point defined by Terra2 or Terra3 mainboard */
Method (_CRT) Method (_CRT)
{ {
If (LEqual (\_SB.GPID, TERRA2_PROJECT_ID)) If (\_SB.GPID == TERRA2_PROJECT_ID)
{ {
Return (CTOK (DPTF_TERRA2_TSR0_CRITICAL)) Return (CTOK (DPTF_TERRA2_TSR0_CRITICAL))
} Else { } Else {
@ -120,7 +120,7 @@ Device (TSR1)
Method (_STA) Method (_STA)
{ {
If (LEqual (\DPTE, One)) { If (\DPTE == One) {
Return (0xF) Return (0xF)
} Else { } Else {
Return (0x0) Return (0x0)
@ -135,7 +135,7 @@ Device (TSR1)
/* Return passive thermal point defined by Terra2 or Terra3 mainboard */ /* Return passive thermal point defined by Terra2 or Terra3 mainboard */
Method (_PSV) Method (_PSV)
{ {
If (LEqual (\_SB.GPID, TERRA2_PROJECT_ID)) If (\_SB.GPID == TERRA2_PROJECT_ID)
{ {
Return (CTOK (DPTF_TERRA2_TSR1_PASSIVE)) Return (CTOK (DPTF_TERRA2_TSR1_PASSIVE))
} Else { } Else {
@ -146,7 +146,7 @@ Device (TSR1)
/* Return critical thermal point defined by Terra2 or Terra3 mainboard */ /* Return critical thermal point defined by Terra2 or Terra3 mainboard */
Method (_CRT) Method (_CRT)
{ {
If (LEqual (\_SB.GPID, TERRA2_PROJECT_ID)) If (\_SB.GPID == TERRA2_PROJECT_ID)
{ {
Return (CTOK (DPTF_TERRA2_TSR1_CRITICAL)) Return (CTOK (DPTF_TERRA2_TSR1_CRITICAL))
} Else { } Else {
@ -188,7 +188,7 @@ Device (TSR2)
Method (_STA) Method (_STA)
{ {
If (LEqual (\DPTE, One)) { If (\DPTE == One) {
Return (0xF) Return (0xF)
} Else { } Else {
Return (0x0) Return (0x0)
@ -203,7 +203,7 @@ Device (TSR2)
/* Return passive thermal point defined by Terra2 or Terra3 mainboard */ /* Return passive thermal point defined by Terra2 or Terra3 mainboard */
Method (_PSV) Method (_PSV)
{ {
If (LEqual (\_SB.GPID, TERRA2_PROJECT_ID)) If (\_SB.GPID == TERRA2_PROJECT_ID)
{ {
Return (CTOK (DPTF_TERRA2_TSR2_PASSIVE)) Return (CTOK (DPTF_TERRA2_TSR2_PASSIVE))
} Else { } Else {
@ -214,7 +214,7 @@ Device (TSR2)
/* Return critical thermal point defined by Terra2 or Terra3 mainboard */ /* Return critical thermal point defined by Terra2 or Terra3 mainboard */
Method (_CRT) Method (_CRT)
{ {
If (LEqual (\_SB.GPID, TERRA2_PROJECT_ID)) If (\_SB.GPID == TERRA2_PROJECT_ID)
{ {
Return (CTOK (DPTF_TERRA2_TSR2_CRITICAL)) Return (CTOK (DPTF_TERRA2_TSR2_CRITICAL))
} Else { } Else {