From 01a06b203eba9ed4e457dea92a76bd2114f1c50a Mon Sep 17 00:00:00 2001 From: Felix Singer Date: Sun, 11 Dec 2022 23:19:04 +0100 Subject: [PATCH] mb/google/rambi/acpi: Replace LEqual(a,b) with ASL 2.0 syntax Replace `LEqual (a, b)` with `a == b`. Change-Id: Ief985f8b7b14e8879a068140cb1f9b28c7336e94 Signed-off-by: Felix Singer Reviewed-on: https://review.coreboot.org/c/coreboot/+/70597 Reviewed-by: Eric Lai Tested-by: build bot (Jenkins) --- src/mainboard/google/rambi/acpi/mainboard.asl | 6 +++--- src/mainboard/google/rambi/acpi/touchscreen_atmel.asl | 2 +- src/mainboard/google/rambi/acpi/touchscreen_elan.asl | 2 +- src/mainboard/google/rambi/acpi/touchscreen_wdt.asl | 2 +- src/mainboard/google/rambi/acpi/trackpad_atmel.asl | 2 +- src/mainboard/google/rambi/acpi/trackpad_elan.asl | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/mainboard/google/rambi/acpi/mainboard.asl b/src/mainboard/google/rambi/acpi/mainboard.asl index 1d0c71eeab..bfbb66bf80 100644 --- a/src/mainboard/google/rambi/acpi/mainboard.asl +++ b/src/mainboard/google/rambi/acpi/mainboard.asl @@ -23,7 +23,7 @@ Scope (\_SB) Method (_CRS) { /* Only return interrupt if I2C1 is PCI mode */ - If (LEqual (\S1EN, 0)) { + If (\S1EN == 0) { Return (^RBUF) } @@ -51,7 +51,7 @@ Scope (\_SB) Method (_CRS) { /* Return interrupt if I2C6 is PCI mode */ - If (LEqual (\S6EN, 0)) { + If (\S6EN == 0) { Return (^RBUF) } @@ -93,7 +93,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/rambi/acpi/touchscreen_atmel.asl b/src/mainboard/google/rambi/acpi/touchscreen_atmel.asl index 018905c9cf..9c0fc6b535 100644 --- a/src/mainboard/google/rambi/acpi/touchscreen_atmel.asl +++ b/src/mainboard/google/rambi/acpi/touchscreen_atmel.asl @@ -29,7 +29,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/rambi/acpi/touchscreen_elan.asl b/src/mainboard/google/rambi/acpi/touchscreen_elan.asl index 1dd7c6b824..22ce52062a 100644 --- a/src/mainboard/google/rambi/acpi/touchscreen_elan.asl +++ b/src/mainboard/google/rambi/acpi/touchscreen_elan.asl @@ -28,7 +28,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/rambi/acpi/touchscreen_wdt.asl b/src/mainboard/google/rambi/acpi/touchscreen_wdt.asl index cb0199e896..19d30067c9 100644 --- a/src/mainboard/google/rambi/acpi/touchscreen_wdt.asl +++ b/src/mainboard/google/rambi/acpi/touchscreen_wdt.asl @@ -28,7 +28,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/rambi/acpi/trackpad_atmel.asl b/src/mainboard/google/rambi/acpi/trackpad_atmel.asl index 4204108f4f..e9a49b9f7a 100644 --- a/src/mainboard/google/rambi/acpi/trackpad_atmel.asl +++ b/src/mainboard/google/rambi/acpi/trackpad_atmel.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/rambi/acpi/trackpad_elan.asl b/src/mainboard/google/rambi/acpi/trackpad_elan.asl index acd423771a..f195e39349 100644 --- a/src/mainboard/google/rambi/acpi/trackpad_elan.asl +++ b/src/mainboard/google/rambi/acpi/trackpad_elan.asl @@ -28,7 +28,7 @@ Scope (\_SB.PCI0.I2C1) Method (_STA) { - If (LEqual (\S1EN, 1)) { + If (\S1EN == 1) { Return (0xF) } Else { Return (0x0)