summaryrefslogtreecommitdiff
path: root/src/ec/lenovo/h8/acpi/thinkpad.asl
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2022-12-16 04:40:39 +0100
committerFelix Singer <felixsinger@posteo.net>2022-12-23 10:17:34 +0000
commit86bc2e708dc2600c5611b6573d43645e7d57e561 (patch)
tree54b589e40a81ee74915df4ed68a6a13c944bc17d /src/ec/lenovo/h8/acpi/thinkpad.asl
parent372573eaff0f757f004de2f4fb3f688de93bbbba (diff)
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 <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/70846 Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/ec/lenovo/h8/acpi/thinkpad.asl')
-rw-r--r--src/ec/lenovo/h8/acpi/thinkpad.asl14
1 files changed, 7 insertions, 7 deletions
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 {