From 86bc2e708dc2600c5611b6573d43645e7d57e561 Mon Sep 17 00:00:00 2001 From: Felix Singer Date: Fri, 16 Dec 2022 04:40:39 +0100 Subject: tree: Replace Or(a,b,c) with ASL 2.0 syntax Replace `Or (a, b, c)` with `c = a | b`, respectively `c |= b` where possible. Change-Id: Icf194b248075f290de90fb4bc4e9a0cd9d76ec61 Signed-off-by: Felix Singer Reviewed-on: https://review.coreboot.org/c/coreboot/+/70846 Reviewed-by: Eric Lai Tested-by: build bot (Jenkins) --- src/ec/lenovo/h8/acpi/thinkpad.asl | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/ec/lenovo') diff --git a/src/ec/lenovo/h8/acpi/thinkpad.asl b/src/ec/lenovo/h8/acpi/thinkpad.asl index f4b2dbd63e..fea97c15df 100644 --- a/src/ec/lenovo/h8/acpi/thinkpad.asl +++ b/src/ec/lenovo/h8/acpi/thinkpad.asl @@ -87,7 +87,7 @@ Device (HKEY) Local0 = One << (Arg0 - 1) If (Arg1) { - Or (DHKN, Local0, DHKN) + DHKN |= Local0 } Else { @@ -165,9 +165,9 @@ Device (HKEY) Local0 = One If(\_SB.PCI0.LPCB.EC.BTEB) { - Or(Local0, 2, Local0) + Local0 |= 2 } - Or(Local0, WBDC << 2, Local0) + Local0 |= WBDC << 2 Return (Local0) } Else { Return (0) @@ -207,9 +207,9 @@ Device (HKEY) Local0 = One If(\_SB.PCI0.LPCB.EC.WWEB) { - Or(Local0, 2, Local0) + Local0 |= 2 } - Or(Local0, WWAN << 2, Local0) + Local0 |= WWAN << 2 Return (Local0) } Else { Return (0) @@ -243,7 +243,7 @@ Device (HKEY) If (HKBL) { Local0 = 0x200 /* FIXME: Support 2bit brightness control */ - Or (Local0, \_SB.PCI0.LPCB.EC.KBLT, Local0) + Local0 |= \_SB.PCI0.LPCB.EC.KBLT Return (Local0) } Else { Return (0) @@ -273,7 +273,7 @@ Device (HKEY) Local0 = One If(\_SB.PCI0.LPCB.EC.UWBE) { - Or(Local0, 2, Local0) + Local0 |= 2 } Return (Local0) } Else { -- cgit v1.2.3