diff options
Diffstat (limited to 'src/ec/google/chromeec/acpi')
-rw-r--r-- | src/ec/google/chromeec/acpi/battery.asl | 8 | ||||
-rw-r--r-- | src/ec/google/chromeec/acpi/ec.asl | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/ec/google/chromeec/acpi/battery.asl b/src/ec/google/chromeec/acpi/battery.asl index ad7d741ba4..c4a787bbe1 100644 --- a/src/ec/google/chromeec/acpi/battery.asl +++ b/src/ec/google/chromeec/acpi/battery.asl @@ -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 diff --git a/src/ec/google/chromeec/acpi/ec.asl b/src/ec/google/chromeec/acpi/ec.asl index ef4054fa5d..e2b55ff88d 100644 --- a/src/ec/google/chromeec/acpi/ec.asl +++ b/src/ec/google/chromeec/acpi/ec.asl @@ -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 |