From f8051e7c8b9ab986c2dd98f9836994caeb761c01 Mon Sep 17 00:00:00 2001 From: Elyes HAOUAS Date: Tue, 6 Oct 2020 18:08:38 +0200 Subject: ec/system76/ec: Convert to ASL 2.0 syntax Change-Id: I83a4a3ad8a9fcb6071e0c700bf2be1676847aa9e Signed-off-by: Elyes HAOUAS Reviewed-on: https://review.coreboot.org/c/coreboot/+/46107 Tested-by: build bot (Jenkins) Reviewed-by: Jeremy Soller --- src/ec/system76/ec/acpi/ec.asl | 2 +- src/ec/system76/ec/acpi/hid.asl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/ec/system76') diff --git a/src/ec/system76/ec/acpi/ec.asl b/src/ec/system76/ec/acpi/ec.asl index 5989f6d285..98abc66e9e 100644 --- a/src/ec/system76/ec/acpi/ec.asl +++ b/src/ec/system76/ec/acpi/ec.asl @@ -35,7 +35,7 @@ Device (\_SB.PCI0.LPCB.EC0) Method (_REG, 2, Serialized) // _REG: Region Availability { Debug = Concatenate("EC: _REG", Concatenate(ToHexString(Arg0), Concatenate(" ", ToHexString(Arg1)))) - If (((Arg0 == 0x03) && (Arg1 == One))) { + If ((Arg0 == 0x03) && (Arg1 == One)) { // Enable hardware touchpad lock, airplane mode, and keyboard backlight keys ECOS = 1 diff --git a/src/ec/system76/ec/acpi/hid.asl b/src/ec/system76/ec/acpi/hid.asl index ce8fd3f28b..6610c2e1bc 100644 --- a/src/ec/system76/ec/acpi/hid.asl +++ b/src/ec/system76/ec/acpi/hid.asl @@ -30,13 +30,13 @@ Device (HIDD) Notify (HIDD, 0xC0) Local0 = Zero - While (((Local0 < 0xFA) && HBSY)) + While ((Local0 < 0xFA) && HBSY) { Sleep (0x04) Local0++ } - If ((HBSY == One)) + If (HBSY == One) { HBSY = Zero HIDX = Zero -- cgit v1.2.3