ec/google/chromeec/acpi: Replace Divide(a,b,,c) with ASL 2.0 syntax

Replace `Divide (a, b, , c)` with `c = a / b`.

Change-Id: I26117087c09109cfc480cbe01d3761a02a12c61b
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/60655
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
This commit is contained in:
Felix Singer 2022-01-02 00:13:07 +01:00 committed by Paul Fagerburg
parent 3c799fa311
commit 81623fbd96
2 changed files with 6 additions and 6 deletions

View File

@ -78,11 +78,11 @@ Method (BBIF, 2, Serialized)
Store (Local0, Arg1[1])
// Design Capacity of Warning
Divide (Local0 * DWRN, 100, , Local2)
Local2 = Local0 * DWRN / 100
Store (Local2, Arg1[5])
// Design Capacity of Low
Divide (Local0 * DLOW, 100, , Local2)
Local2 = Local0 * DLOW / 100
Store (Local2, Arg1[6])
// Get battery info from mainboard
@ -118,11 +118,11 @@ Method (BBIX, 2, Serialized)
Store (Local0, Arg1[2])
// Design Capacity of Warning
Divide (Local0 * DWRN, 100, , Local2)
Local2 = Local0 * DWRN / 100
Store (Local2, Arg1[6])
// Design Capacity of Low
Divide (Local0 * DLOW, 100, , Local2)
Local2 = Local0 * DLOW / 100
Store (Local2, Arg1[7])
// Cycle Count

View File

@ -423,7 +423,7 @@ Device (EC0)
Store (ToInteger (Arg0), ^PATI)
/* Temperature is passed in 1/10 Kelvin */
Divide (ToInteger (Arg1), 10, , Local1)
Local1 = ToInteger (Arg1) / 10
/* Adjust by EC temperature offset */
^PATT = Local1 - ^TOFS
@ -450,7 +450,7 @@ Device (EC0)
Store (ToInteger (Arg0), ^PATI)
/* Temperature is passed in 1/10 Kelvin */
Divide (ToInteger (Arg1), 10, , Local1)
Local1 = ToInteger (Arg1) / 10
/* Adjust by EC temperature offset */
^PATT = Local1 - ^TOFS