mb/google/kahlee/acpi: Replace Store(a,b) with ASL 2.0 syntax

Replace `Store (a, b)` with `b = a`.

Change-Id: Ib2ba6b5c14f6699dc6c0734724a6784e3400a467
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/70643
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
This commit is contained in:
Felix Singer 2022-12-12 05:00:27 +01:00
parent 69b48d8231
commit a61e6546f6
2 changed files with 7 additions and 7 deletions

View File

@ -29,10 +29,10 @@ Method (_PTS, 1)
\_SB.PCI0.FPTS ()
/* Clear wake status structure. */
Store (0, PEWD)
Store (0, WKST[0])
Store (0, WKST[1])
Store (7, UPWS)
PEWD = 0
WKST[0] = 0
WKST[1] = 0
UPWS = 7
}
/*

View File

@ -52,10 +52,10 @@ Scope (\_TZ)
Method (_TMP, 0, Serialized)
{
/* Get temperature from EC in deci-kelvin */
Store (\_SB.PCI0.LPCB.EC0.TSRD (TMPS), Local0)
Local0 = \_SB.PCI0.LPCB.EC0.TSRD (TMPS)
/* Critical temperature in deci-kelvin */
Store (CTOK (\TCRT), Local1)
Local1 = CTOK (\TCRT)
If (Local0 >= Local1) {
Printf ("CRITICAL TEMPERATURE: %o", Local0)
@ -64,7 +64,7 @@ Scope (\_TZ)
Sleep (1000)
/* Re-read temperature from EC */
Store (\_SB.PCI0.LPCB.EC0.TSRD (TMPS), Local0)
Local0 = \_SB.PCI0.LPCB.EC0.TSRD (TMPS)
Printf ("RE-READ TEMPERATURE: %o", Local0)
}