diff options
author | Felix Singer <felix.singer@secunet.com> | 2021-07-26 18:53:05 +0200 |
---|---|---|
committer | Nico Huber <nico.h@gmx.de> | 2021-07-28 13:49:43 +0000 |
commit | ee00ad35134fe26815e9413b4e9af8261d430eb8 (patch) | |
tree | 9cbded2371ffe5b38e9c9c45bd3ac0c4f25e863c /src/ec/roda/it8518/acpi/battery.asl | |
parent | 2b902ebf95822ec33d26397e0094a55eac5eabb4 (diff) |
ec/roda/it8518/acpi: Use mathematical operators
Use mathematical operators instead of their equivalent methods.
Change-Id: I5b1d5d9882eae5e8bcf2d97bcefaeea1a7ad8f4d
Signed-off-by: Felix Singer <felix.singer@secunet.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/56607
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/ec/roda/it8518/acpi/battery.asl')
-rw-r--r-- | src/ec/roda/it8518/acpi/battery.asl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ec/roda/it8518/acpi/battery.asl b/src/ec/roda/it8518/acpi/battery.asl index 882168fc9e..e9e7edb84c 100644 --- a/src/ec/roda/it8518/acpi/battery.asl +++ b/src/ec/roda/it8518/acpi/battery.asl @@ -63,8 +63,8 @@ Device (BAT0) Printf ("-----> BAT0: _BIF") PBIF[2] = B0FC - PBIF[5] = Divide (Multiply (B0FC, 6), 100) - PBIF[6] = Divide (Multiply (B0FC, 3), 100) + PBIF[5] = (B0FC * 6) / 100 + PBIF[6] = (B0FC * 3) / 100 Printf ("<----- BAT0: _BIF") @@ -96,7 +96,7 @@ Device (BAT0) Local1 = B0AC If (Local1 >= 0x8000) { - Subtract (0x00010000, Local1, Local1) + Local1 = 0x00010000 - Local1 } PBST[1] = Local1 |