From 034920c1d438ff39f9243a1d6b0d41957405d34c Mon Sep 17 00:00:00 2001 From: Felix Singer Date: Fri, 16 Dec 2022 02:25:30 +0100 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/70840 Reviewed-by: Caveh Jalali Tested-by: build bot (Jenkins) Reviewed-by: Eric Lai --- src/ec/quanta/it8518/acpi/battery.asl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ec/quanta/it8518/acpi') diff --git a/src/ec/quanta/it8518/acpi/battery.asl b/src/ec/quanta/it8518/acpi/battery.asl index e63cefb7c5..82269010ef 100644 --- a/src/ec/quanta/it8518/acpi/battery.asl +++ b/src/ec/quanta/it8518/acpi/battery.asl @@ -316,7 +316,7 @@ Device (BATX) Local2 = SBRS // See if within ~3% of full - ShiftRight (Local2, 5, Local3) + Local3 = Local2 >> 5 If (Local1 > Local2 - Local3 && Local1 < Local2 + Local3) { Local1 = Local2 -- cgit v1.2.3