summaryrefslogtreecommitdiffstats
path: root/src/ec/lenovo
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2022-12-16 02:25:30 +0100
committerFelix Singer <felixsinger@posteo.net>2022-12-23 03:16:35 +0000
commit034920c1d438ff39f9243a1d6b0d41957405d34c (patch)
tree7f31b5de997fbd30ef15cf854c916f24c11fb627 /src/ec/lenovo
parent100f92c54f2f199e98d817bd16ae7530e8ad719c (diff)
downloadcoreboot-034920c1d438ff39f9243a1d6b0d41957405d34c.tar.gz
coreboot-034920c1d438ff39f9243a1d6b0d41957405d34c.tar.bz2
coreboot-034920c1d438ff39f9243a1d6b0d41957405d34c.zip
tree: Replace ShiftRight(a,b,c) with ASL 2.0 syntax
Replace `ShiftRight (a, b, c)` with `c = a >> b`. One case was simplified to just `a >> b`. Change-Id: I889012b0a3067138e6f02d3fe8e97151effb5c2a Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/70840 Reviewed-by: Caveh Jalali <caveh@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Diffstat (limited to 'src/ec/lenovo')
-rw-r--r--src/ec/lenovo/h8/acpi/thinkpad.asl10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ec/lenovo/h8/acpi/thinkpad.asl b/src/ec/lenovo/h8/acpi/thinkpad.asl
index bb2b94a181e0..e1c979eaae35 100644
--- a/src/ec/lenovo/h8/acpi/thinkpad.asl
+++ b/src/ec/lenovo/h8/acpi/thinkpad.asl
@@ -184,9 +184,9 @@ Device (HKEY)
HAST = One
If (HBDC) {
- ShiftRight (Arg0 & 2, 1, Local0)
+ Local0 = (Arg0 & 2) >> 1
\_SB.PCI0.LPCB.EC.BTEB = Local0
- ShiftRight (Arg0 & 4, 2, Local0)
+ Local0 = (Arg0 & 4) >> 2
WBDC = Local0
}
}
@@ -226,9 +226,9 @@ Device (HKEY)
HAST = One
If (HWAN) {
- ShiftRight (Arg0 & 2, 1, Local0)
+ Local0 = (Arg0 & 2) >> 1
\_SB.PCI0.LPCB.EC.WWEB = Local0
- ShiftRight (Arg0 & 4, 2, WWAN)
+ WWAN = (Arg0 & 4) >> 2
}
}
@@ -288,7 +288,7 @@ Device (HKEY)
Method (SUWB, 1)
{
If (HUWB) {
- ShiftRight (Arg0 & 2, 1, Local0)
+ Local0 = (Arg0 & 2) >> 1
\_SB.PCI0.LPCB.EC.UWBE = Local0
}
}