From d901077335aaaf69117c28f05abfc66b036876b4 Mon Sep 17 00:00:00 2001 From: Felix Singer Date: Mon, 12 Dec 2022 06:40:41 +0100 Subject: ec/kontron/it8516e/acpi: Replace Store(a,b) with ASL 2.0 syntax Replace `Store (a, b)` with `b = a`. Change-Id: I16890206d517f0455d29c1642cbbe642a3312481 Signed-off-by: Felix Singer Reviewed-on: https://review.coreboot.org/c/coreboot/+/70679 Reviewed-by: Eric Lai Tested-by: build bot (Jenkins) --- src/ec/kontron/it8516e/acpi/pm_channels.asl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/ec/kontron/it8516e/acpi/pm_channels.asl b/src/ec/kontron/it8516e/acpi/pm_channels.asl index 5df72c0985..133a0651fa 100644 --- a/src/ec/kontron/it8516e/acpi/pm_channels.asl +++ b/src/ec/kontron/it8516e/acpi/pm_channels.asl @@ -31,7 +31,7 @@ Device (PM1) { */ Method (CTK) { - Store (EC_READ (0x52), Local0) + Local0 = EC_READ (0x52) If (And (Local0, EC_ERROR_MASK)) { Return (0) } @@ -73,17 +73,17 @@ Device (PM2) { Method (CTK) { Acquire (EC_MUTEX, 0xffff) - Store (SEND_EC_COMMAND (0x20), Local0) /* GET_CPUTEMP */ + Local0 = SEND_EC_COMMAND (0x20) /* GET_CPUTEMP */ If (And (Local0, EC_ERROR_MASK)) { Release (EC_MUTEX) Return (0) } - Store (RECV_EC_DATA (), Local0) /* Temp low byte in 64th °C */ + Local0 = RECV_EC_DATA () /* Temp low byte in 64th °C */ If (And (Local0, EC_ERROR_MASK)) { Release (EC_MUTEX) Return (0) } - Store (RECV_EC_DATA (), Local1) /* Temp high byte in 64th °C */ + Local1 = RECV_EC_DATA () /* Temp high byte in 64th °C */ If (And (Local1, EC_ERROR_MASK)) { Release (EC_MUTEX) Return (0) @@ -91,7 +91,7 @@ Device (PM2) { Release (EC_MUTEX) Or (ShiftLeft (Local1, 8), Local0, Local0) - Store (Local0 * 10 / 64, Local0) /* Convert to 10th °C */ + Local0 *= 10 / 64 /* Convert to 10th °C */ Return (Local0 + 2732) /* Return as 10th Kelvin */ } } -- cgit v1.2.3