ec/quanta/it8518/acpi: Replace Multiply(a,b,c) with ASL 2.0 syntax
Replace `Multiply (a, b, c)` with `c = a * b`. Change-Id: Ied407753ee3bb024c8c0350c45312c337ac799e5 Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/60649 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Sean Rhodes <sean@starlabs.systems>
This commit is contained in:
parent
d5d4b4459f
commit
f1f861ebf5
|
@ -119,7 +119,7 @@ Device (BATX)
|
||||||
//
|
//
|
||||||
If (Local7)
|
If (Local7)
|
||||||
{
|
{
|
||||||
Multiply (SBFC, 10, PBIF[2])
|
PBIF[2] = SBFC * 10
|
||||||
}
|
}
|
||||||
Else
|
Else
|
||||||
{
|
{
|
||||||
|
@ -137,7 +137,7 @@ Device (BATX)
|
||||||
//
|
//
|
||||||
If (Local7)
|
If (Local7)
|
||||||
{
|
{
|
||||||
Multiply (SBDC, 10, Local0)
|
Local0 = SBDC * 10
|
||||||
}
|
}
|
||||||
Else
|
Else
|
||||||
{
|
{
|
||||||
|
@ -286,7 +286,7 @@ Device (BATX)
|
||||||
|
|
||||||
If (Local6)
|
If (Local6)
|
||||||
{
|
{
|
||||||
Multiply (ECVO, Local1, Local1)
|
Local1 *= ECVO
|
||||||
Divide (Local1, 1000, , Local1)
|
Divide (Local1, 1000, , Local1)
|
||||||
}
|
}
|
||||||
Store (Local1, PBST[1])
|
Store (Local1, PBST[1])
|
||||||
|
@ -299,7 +299,7 @@ Device (BATX)
|
||||||
// ACPI spec : 0 - mWh : 1 - mAh
|
// ACPI spec : 0 - mWh : 1 - mAh
|
||||||
If (Local6)
|
If (Local6)
|
||||||
{
|
{
|
||||||
Multiply (ECRC, 10, Local1)
|
Local1 = ECRC * 10
|
||||||
}
|
}
|
||||||
Else
|
Else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue