summaryrefslogtreecommitdiff
path: root/src/ec/lenovo
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2022-01-03 19:30:43 +0100
committerFelix Singer <felixsinger@posteo.net>2022-06-09 09:21:38 +0000
commit9a351fb445d7f4d14bca6d185fefa22c222b8776 (patch)
tree0270ce8f41efb5fb485c92604812891d658dc0b4 /src/ec/lenovo
parent32283a86cf1506846f288e77c8a204359682d7e6 (diff)
ec/lenovo/h8/acpi: Replace And() with ASL 2.0 syntax
Change-Id: Id600bcb3fad35455adffe11a8105ad2590e83feb Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/60723 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Sean Rhodes <sean@starlabs.systems>
Diffstat (limited to 'src/ec/lenovo')
-rw-r--r--src/ec/lenovo/h8/acpi/thinkpad.asl18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/ec/lenovo/h8/acpi/thinkpad.asl b/src/ec/lenovo/h8/acpi/thinkpad.asl
index ec897540aa..1dc7c0542f 100644
--- a/src/ec/lenovo/h8/acpi/thinkpad.asl
+++ b/src/ec/lenovo/h8/acpi/thinkpad.asl
@@ -52,7 +52,7 @@ Device (HKEY)
/* Report event */
Method (RHK, 1, NotSerialized) {
ShiftLeft (One, Arg0 - 1, Local0)
- If (And (EMSK, Local0)) {
+ If (EMSK & Local0) {
Store (Arg0, BTN)
Notify (HKEY, 0x80)
}
@@ -61,7 +61,7 @@ Device (HKEY)
/* Report tablet */
Method (RTAB, 1, NotSerialized) {
ShiftLeft (One, Arg0 - 1, Local0)
- If (And (ETAB, Local0)) {
+ If (ETAB & Local0) {
Store (Arg0, BTAB)
Notify (HKEY, 0x80)
}
@@ -91,7 +91,7 @@ Device (HKEY)
}
Else
{
- And (DHKN, Not (Local0), DHKN)
+ DHKN = DHKN & Not (Local0)
}
If (EN)
{
@@ -184,9 +184,9 @@ Device (HKEY)
Store (One, HAST)
If (HBDC) {
- ShiftRight (And(Arg0, 2), 1, Local0)
+ ShiftRight (Arg0 & 2, 1, Local0)
Store (Local0, \_SB.PCI0.LPCB.EC.BTEB)
- ShiftRight (And(Arg0, 4), 2, Local0)
+ ShiftRight (Arg0 & 4, 2, Local0)
Store (Local0, WBDC)
}
}
@@ -226,9 +226,9 @@ Device (HKEY)
Store (One, HAST)
If (HWAN) {
- ShiftRight (And(Arg0, 2), 1, Local0)
+ ShiftRight (Arg0 & 2, 1, Local0)
Store (Local0, \_SB.PCI0.LPCB.EC.WWEB)
- ShiftRight (And(Arg0, 4), 2, WWAN)
+ ShiftRight (Arg0 & 4, 2, WWAN)
}
}
@@ -258,7 +258,7 @@ Device (HKEY)
{
If (HKBL) {
/* FIXME: Support 2bit brightness control */
- Store (And(Arg0, 1), \_SB.PCI0.LPCB.EC.WWEB)
+ Store (Arg0 & 1, \_SB.PCI0.LPCB.EC.WWEB)
}
}
@@ -288,7 +288,7 @@ Device (HKEY)
Method (SUWB, 1)
{
If (HUWB) {
- ShiftRight (And(Arg0, 2), 1, Local0)
+ ShiftRight (Arg0 & 2, 1, Local0)
Store (Local0, \_SB.PCI0.LPCB.EC.UWBE)
}
}