diff options
author | Felix Singer <felixsinger@posteo.net> | 2022-12-16 02:43:56 +0100 |
---|---|---|
committer | Felix Singer <felixsinger@posteo.net> | 2022-12-23 08:30:09 +0000 |
commit | 3c9291b3359d91d7238ed1886f4d87d635a6df55 (patch) | |
tree | 55e5b79d71fd2e0b68b841195b5820bfa4f43520 /src/mainboard/lenovo | |
parent | 034920c1d438ff39f9243a1d6b0d41957405d34c (diff) |
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 <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/70841
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/lenovo')
-rw-r--r-- | src/mainboard/lenovo/s230u/acpi/gpe.asl | 4 |
1 files changed, 2 insertions, 2 deletions
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) |