From 0767747974a90c8df9615a5b24e1ac55983cf6c8 Mon Sep 17 00:00:00 2001 From: Felix Singer Date: Sun, 2 Jan 2022 02:55:22 +0100 Subject: [PATCH] soc/intel/cannonlake/acpi: Replace LNotEqual(a,b) with ASL 2.0 syntax Replace `LNotEqual(a, b)` with `a != b`. Change-Id: I12c855437a581beade2d218b8f710cf1b32cb841 Signed-off-by: Felix Singer Reviewed-on: https://review.coreboot.org/c/coreboot/+/60703 Tested-by: build bot (Jenkins) Reviewed-by: Sean Rhodes --- src/soc/intel/cannonlake/acpi/gpio.asl | 2 +- src/soc/intel/cannonlake/acpi/pch_hda.asl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/soc/intel/cannonlake/acpi/gpio.asl b/src/soc/intel/cannonlake/acpi/gpio.asl index d16c67a0a6..81c41cf14d 100644 --- a/src/soc/intel/cannonlake/acpi/gpio.asl +++ b/src/soc/intel/cannonlake/acpi/gpio.asl @@ -136,7 +136,7 @@ Method (GPID, 1, Serialized) Method (CGPM, 2, Serialized) { Store (GPID (Arg0), Local0) - If (LNotEqual (Local0, 0)) { + If (Local0 != 0) { /* Mask off current PM bits */ PCRA (Local0, GPIO_MISCCFG, Not (MISCCFG_GPIO_PM_CONFIG_BITS)) /* Mask in requested bits */ diff --git a/src/soc/intel/cannonlake/acpi/pch_hda.asl b/src/soc/intel/cannonlake/acpi/pch_hda.asl index 85182f9d0f..377859bc36 100644 --- a/src/soc/intel/cannonlake/acpi/pch_hda.asl +++ b/src/soc/intel/cannonlake/acpi/pch_hda.asl @@ -36,7 +36,7 @@ Device (HDAS) * NHLT Query only supported for revision 1 and * if NHLT address and length are set in NVS. */ - If (Arg1 == 1 && LNotEqual (NHLA, Zero) && LNotEqual (NHLL, Zero)) { + If (Arg1 == 1 && NHLA != 0 && NHLL != 0) { Return (Buffer (One) { 0x03 }) } Else { Return (Buffer (One) { 0x01 })