From 3c9291b3359d91d7238ed1886f4d87d635a6df55 Mon Sep 17 00:00:00 2001 From: Felix Singer Date: Fri, 16 Dec 2022 02:43:56 +0100 Subject: tree: Replace ShiftLeft(a,b,c) with ASL 2.0 syntax Replace `ShiftLeft (a, b, c)` with `c = a << b`. Change-Id: Ibd25a05f49f79e80592482a1b0532334f727af58 Signed-off-by: Felix Singer Reviewed-on: https://review.coreboot.org/c/coreboot/+/70841 Reviewed-by: Eric Lai Tested-by: build bot (Jenkins) --- src/mainboard/lenovo/s230u/acpi/gpe.asl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mainboard/lenovo') diff --git a/src/mainboard/lenovo/s230u/acpi/gpe.asl b/src/mainboard/lenovo/s230u/acpi/gpe.asl index 76461f619d..9b22e67ecc 100644 --- a/src/mainboard/lenovo/s230u/acpi/gpe.asl +++ b/src/mainboard/lenovo/s230u/acpi/gpe.asl @@ -4,7 +4,7 @@ Scope (_GPE) { Name (PDET, Zero) Method (PNOT, 2, Serialized) { - ShiftLeft (Arg0, Arg1, Local0) + Local0 = Arg0 << Arg1 Not( ShiftLeft (One, Arg1), Local1) Or (Local0, And (Local1, PDET), PDET) If (PDET == Zero) { @@ -17,7 +17,7 @@ Scope (_GPE) } Method (TINV, 2, Serialized) { - ShiftLeft (One, Arg1, Local0) + Local0 = One << Arg1 If (Arg0 == Zero) { Not (Local0, Local0) And (GIV0, Local0, GIV0) -- cgit v1.2.3