diff options
author | Felix Singer <felixsinger@posteo.net> | 2022-01-02 00:02:13 +0100 |
---|---|---|
committer | Felix Singer <felixsinger@posteo.net> | 2022-06-09 09:15:14 +0000 |
commit | 3f53ee3269c8f142e2ec81cab2df0b630c10ef39 (patch) | |
tree | e49d8f19182e0a45853abc59e9fd6a8f1c9d6223 /src/ec/quanta/it8518 | |
parent | 1e965548460a662b56eede184d48b4166998e3e6 (diff) |
ec/quanta/it8518/acpi: Replace Divide(a,b,,c) with ASL 2.0 syntax
Replace `Divide (a, b, , c)` with `c = a / b`.
Change-Id: I9b8262396755197dfbe044e3dc6a6a75c903f093
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/60654
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Sean Rhodes <sean@starlabs.systems>
Diffstat (limited to 'src/ec/quanta/it8518')
-rw-r--r-- | src/ec/quanta/it8518/acpi/battery.asl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ec/quanta/it8518/acpi/battery.asl b/src/ec/quanta/it8518/acpi/battery.asl index 6e9ba895fa..98f6775278 100644 --- a/src/ec/quanta/it8518/acpi/battery.asl +++ b/src/ec/quanta/it8518/acpi/battery.asl @@ -149,8 +149,8 @@ Device (BATX) // Design capacity of High (5%) // Design capacity of Low (1%) // - Divide (Local0, 20, , PBIF[5]) - Divide (Local0, 100, , PBIF[6]) + PBIF[5] = Local0 / 20 + PBIF[6] = Local0 / 100 // // Design voltage @@ -287,7 +287,7 @@ Device (BATX) If (Local6) { Local1 *= ECVO - Divide (Local1, 1000, , Local1) + Local1 /= 1000 } Store (Local1, PBST[1]) |