summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2022-12-11 23:02:09 +0100
committerFelix Singer <felixsinger@posteo.net>2022-12-12 22:06:33 +0000
commit096158d6e0c85db4c1069424956d1c3b3bde1b5c (patch)
treebbd0811d49889cb2079994392db94e37df47dcdc
parent2ed8992d736e14c36fc625f9d9b9cfea5d603a94 (diff)
downloadcoreboot-096158d6e0c85db4c1069424956d1c3b3bde1b5c.tar.gz
coreboot-096158d6e0c85db4c1069424956d1c3b3bde1b5c.tar.bz2
coreboot-096158d6e0c85db4c1069424956d1c3b3bde1b5c.zip
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>
-rw-r--r--src/mainboard/google/cyan/acpi/codec_maxim.asl2
-rw-r--r--src/mainboard/google/cyan/acpi/touchscreen_elan.asl2
-rw-r--r--src/mainboard/google/cyan/acpi/touchscreen_melfas.asl2
-rw-r--r--src/mainboard/google/cyan/acpi/touchscreen_synaptics.asl11
-rw-r--r--src/mainboard/google/cyan/acpi/trackpad_atmel.asl2
-rw-r--r--src/mainboard/google/cyan/acpi/trackpad_elan.asl2
-rw-r--r--src/mainboard/google/cyan/variants/terra/include/variant/acpi/dptf.asl6
-rw-r--r--src/mainboard/google/cyan/variants/terra/include/variant/acpi/thermal.asl24
8 files changed, 25 insertions, 26 deletions
diff --git a/src/mainboard/google/cyan/acpi/codec_maxim.asl b/src/mainboard/google/cyan/acpi/codec_maxim.asl
index e85e93775ca2..dd68904f9be6 100644
--- a/src/mainboard/google/cyan/acpi/codec_maxim.asl
+++ b/src/mainboard/google/cyan/acpi/codec_maxim.asl
@@ -39,7 +39,7 @@ Scope (\_SB.PCI0.I2C2)
Method (_STA)
{
- If (LEqual (\S2EN, 1)) {
+ If (\S2EN == 1) {
Return (0xF)
} Else {
Return (0x0)
diff --git a/src/mainboard/google/cyan/acpi/touchscreen_elan.asl b/src/mainboard/google/cyan/acpi/touchscreen_elan.asl
index 3a5d04e6c9e2..14e513542512 100644
--- a/src/mainboard/google/cyan/acpi/touchscreen_elan.asl
+++ b/src/mainboard/google/cyan/acpi/touchscreen_elan.asl
@@ -29,7 +29,7 @@ Scope (\_SB.PCI0.I2C1)
Method (_STA)
{
- If (LEqual (\S1EN, 1)) {
+ If (\S1EN == 1) {
Return (0xF)
} Else {
Return (0x0)
diff --git a/src/mainboard/google/cyan/acpi/touchscreen_melfas.asl b/src/mainboard/google/cyan/acpi/touchscreen_melfas.asl
index e972056510d3..6fc1e107d4dd 100644
--- a/src/mainboard/google/cyan/acpi/touchscreen_melfas.asl
+++ b/src/mainboard/google/cyan/acpi/touchscreen_melfas.asl
@@ -28,7 +28,7 @@ Scope (\_SB.PCI0.I2C1)
Method (_STA)
{
- If (LEqual (\S1EN, 1)) {
+ If (\S1EN == 1) {
Return (0xF)
} Else {
Return (0x0)
diff --git a/src/mainboard/google/cyan/acpi/touchscreen_synaptics.asl b/src/mainboard/google/cyan/acpi/touchscreen_synaptics.asl
index a944db6113d5..4759dbb01966 100644
--- a/src/mainboard/google/cyan/acpi/touchscreen_synaptics.asl
+++ b/src/mainboard/google/cyan/acpi/touchscreen_synaptics.asl
@@ -14,13 +14,12 @@ Scope (\_SB.PCI0.I2C1)
*/
Method (_DSM, 4, NotSerialized)
{
- If (LEqual (Arg0, ToUUID (
- "3cdff6f7-4267-4555-ad05-b30a3d8938de")))
+ If (Arg0 == ToUUID ("3cdff6f7-4267-4555-ad05-b30a3d8938de"))
{
// DSM Revision
- If (LEqual (Arg2, Zero))
+ If (Arg2 == Zero)
{
- If (LEqual (Arg1, One))
+ If (Arg1 == One)
{
Return (Buffer (One)
{
@@ -36,7 +35,7 @@ Scope (\_SB.PCI0.I2C1)
}
}
// HID Function
- If (LEqual (Arg2, One))
+ If (Arg2 == One)
{
Return (0x20)
}
@@ -71,7 +70,7 @@ Scope (\_SB.PCI0.I2C1)
Method (_STA)
{
- If (LEqual (\S1EN, 1)) {
+ If (\S1EN == 1) {
Return (0xF)
} Else {
Return (0x0)
diff --git a/src/mainboard/google/cyan/acpi/trackpad_atmel.asl b/src/mainboard/google/cyan/acpi/trackpad_atmel.asl
index 91678de8b8b8..43180a2bea9f 100644
--- a/src/mainboard/google/cyan/acpi/trackpad_atmel.asl
+++ b/src/mainboard/google/cyan/acpi/trackpad_atmel.asl
@@ -25,7 +25,7 @@ Scope (\_SB.PCI0.I2C6)
Method (_STA)
{
- If (LEqual (\S6EN, 1)) {
+ If (\S6EN == 1) {
Return (0xF)
} Else {
Return (0x0)
diff --git a/src/mainboard/google/cyan/acpi/trackpad_elan.asl b/src/mainboard/google/cyan/acpi/trackpad_elan.asl
index aa268b1b5d6d..93cda3477f36 100644
--- a/src/mainboard/google/cyan/acpi/trackpad_elan.asl
+++ b/src/mainboard/google/cyan/acpi/trackpad_elan.asl
@@ -24,7 +24,7 @@ Scope (\_SB.PCI0.I2C6)
Method (_STA)
{
- If (LEqual (\S6EN, 1)) {
+ If (\S6EN == 1) {
Return (0xF)
} Else {
Return (0x0)
diff --git a/src/mainboard/google/cyan/variants/terra/include/variant/acpi/dptf.asl b/src/mainboard/google/cyan/variants/terra/include/variant/acpi/dptf.asl
index 621e5d30916d..19f26097cd26 100644
--- a/src/mainboard/google/cyan/variants/terra/include/variant/acpi/dptf.asl
+++ b/src/mainboard/google/cyan/variants/terra/include/variant/acpi/dptf.asl
@@ -156,7 +156,7 @@ Device (DPTF)
Method (_STA)
{
- If (LEqual (\DPTE, One)) {
+ If (\DPTE == One) {
Return (0xF)
} Else {
Return (0x0)
@@ -173,7 +173,7 @@ Device (DPTF)
Method (_OSC, 4, Serialized)
{
/* Check for Passive Policy UUID */
- If (LEqual (DeRefOf (IDSP[0]), Arg0)) {
+ If (DeRefOf (IDSP[0]) == Arg0) {
/* Initialize Thermal Devices */
^TINI ()
@@ -192,7 +192,7 @@ Device (DPTF)
/* Return TRT table defined by Terra2 or Terra3 mainboard */
Method (_TRT)
{
- If (Lequal(\_SB.GPID, TERRA2_PROJECT_ID))
+ If (\_SB.GPID == TERRA2_PROJECT_ID)
{
Return (\_SB.TRT2)
} Else {
diff --git a/src/mainboard/google/cyan/variants/terra/include/variant/acpi/thermal.asl b/src/mainboard/google/cyan/variants/terra/include/variant/acpi/thermal.asl
index 1e2d28637862..d8f1170672dd 100644
--- a/src/mainboard/google/cyan/variants/terra/include/variant/acpi/thermal.asl
+++ b/src/mainboard/google/cyan/variants/terra/include/variant/acpi/thermal.asl
@@ -9,17 +9,17 @@ Method (TEVT, 1, NotSerialized)
Store (ToInteger (Arg0), Local0)
#ifdef DPTF_TSR0_SENSOR_ID
- If (LEqual (Local0, DPTF_TSR0_SENSOR_ID)) {
+ If (Local0 == DPTF_TSR0_SENSOR_ID) {
Notify (^TSR0, 0x90)
}
#endif
#ifdef DPTF_TSR1_SENSOR_ID
- If (LEqual (Local0, DPTF_TSR1_SENSOR_ID)) {
+ If (Local0 == DPTF_TSR1_SENSOR_ID) {
Notify (^TSR1, 0x90)
}
#endif
#ifdef DPTF_TSR2_SENSOR_ID
- If (LEqual (Local0, DPTF_TSR2_SENSOR_ID)) {
+ If (Local0 == DPTF_TSR2_SENSOR_ID) {
Notify (^TSR2, 0x90)
}
#endif
@@ -52,7 +52,7 @@ Device (TSR0)
Method (_STA)
{
- If (LEqual (\DPTE, One)) {
+ If (\DPTE == One) {
Return (0xF)
} Else {
Return (0x0)
@@ -67,7 +67,7 @@ Device (TSR0)
/* Return passive thermal point defined by Terra2 or Terra3 mainboard */
Method (_PSV)
{
- If (LEqual (\_SB.GPID, TERRA2_PROJECT_ID))
+ If (\_SB.GPID == TERRA2_PROJECT_ID)
{
Return (CTOK (DPTF_TERRA2_TSR0_PASSIVE))
} Else {
@@ -78,7 +78,7 @@ Device (TSR0)
/* Return critical thermal point defined by Terra2 or Terra3 mainboard */
Method (_CRT)
{
- If (LEqual (\_SB.GPID, TERRA2_PROJECT_ID))
+ If (\_SB.GPID == TERRA2_PROJECT_ID)
{
Return (CTOK (DPTF_TERRA2_TSR0_CRITICAL))
} Else {
@@ -120,7 +120,7 @@ Device (TSR1)
Method (_STA)
{
- If (LEqual (\DPTE, One)) {
+ If (\DPTE == One) {
Return (0xF)
} Else {
Return (0x0)
@@ -135,7 +135,7 @@ Device (TSR1)
/* Return passive thermal point defined by Terra2 or Terra3 mainboard */
Method (_PSV)
{
- If (LEqual (\_SB.GPID, TERRA2_PROJECT_ID))
+ If (\_SB.GPID == TERRA2_PROJECT_ID)
{
Return (CTOK (DPTF_TERRA2_TSR1_PASSIVE))
} Else {
@@ -146,7 +146,7 @@ Device (TSR1)
/* Return critical thermal point defined by Terra2 or Terra3 mainboard */
Method (_CRT)
{
- If (LEqual (\_SB.GPID, TERRA2_PROJECT_ID))
+ If (\_SB.GPID == TERRA2_PROJECT_ID)
{
Return (CTOK (DPTF_TERRA2_TSR1_CRITICAL))
} Else {
@@ -188,7 +188,7 @@ Device (TSR2)
Method (_STA)
{
- If (LEqual (\DPTE, One)) {
+ If (\DPTE == One) {
Return (0xF)
} Else {
Return (0x0)
@@ -203,7 +203,7 @@ Device (TSR2)
/* Return passive thermal point defined by Terra2 or Terra3 mainboard */
Method (_PSV)
{
- If (LEqual (\_SB.GPID, TERRA2_PROJECT_ID))
+ If (\_SB.GPID == TERRA2_PROJECT_ID)
{
Return (CTOK (DPTF_TERRA2_TSR2_PASSIVE))
} Else {
@@ -214,7 +214,7 @@ Device (TSR2)
/* Return critical thermal point defined by Terra2 or Terra3 mainboard */
Method (_CRT)
{
- If (LEqual (\_SB.GPID, TERRA2_PROJECT_ID))
+ If (\_SB.GPID == TERRA2_PROJECT_ID)
{
Return (CTOK (DPTF_TERRA2_TSR2_CRITICAL))
} Else {