diff options
author | Felix Singer <felixsinger@posteo.net> | 2022-12-16 07:54:16 +0100 |
---|---|---|
committer | Felix Singer <felixsinger@posteo.net> | 2022-12-23 10:18:55 +0000 |
commit | d25277666829d7ed9897598d3ed46fdee0613106 (patch) | |
tree | a8aa22ed086730113ae0fefb2584fb0f424cc5c4 /src/ec/kontron/it8516e/acpi | |
parent | 35e65a8bc36628baad7d2ed94bef7619971e6d88 (diff) |
tree: Replace And(a,b) with ASL 2.0 syntax
Replace `And (a, b)` with `a & b`.
Change-Id: Id8bbd1a477e6286bbcb5fa31afd1c7a860b1c7dc
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/70851
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/ec/kontron/it8516e/acpi')
-rw-r--r-- | src/ec/kontron/it8516e/acpi/pm_channels.asl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ec/kontron/it8516e/acpi/pm_channels.asl b/src/ec/kontron/it8516e/acpi/pm_channels.asl index 8f3fc7e1d2..ca414f02df 100644 --- a/src/ec/kontron/it8516e/acpi/pm_channels.asl +++ b/src/ec/kontron/it8516e/acpi/pm_channels.asl @@ -32,7 +32,7 @@ Device (PM1) { Method (CTK) { Local0 = EC_READ (0x52) - If (And (Local0, EC_ERROR_MASK)) { + If (Local0 & EC_ERROR_MASK) { Return (0) } Local0 *= 10 @@ -74,17 +74,17 @@ Device (PM2) { { Acquire (EC_MUTEX, 0xffff) Local0 = SEND_EC_COMMAND (0x20) /* GET_CPUTEMP */ - If (And (Local0, EC_ERROR_MASK)) { + If (Local0 & EC_ERROR_MASK) { Release (EC_MUTEX) Return (0) } Local0 = RECV_EC_DATA () /* Temp low byte in 64th °C */ - If (And (Local0, EC_ERROR_MASK)) { + If (Local0 & EC_ERROR_MASK) { Release (EC_MUTEX) Return (0) } Local1 = RECV_EC_DATA () /* Temp high byte in 64th °C */ - If (And (Local1, EC_ERROR_MASK)) { + If (Local1 & EC_ERROR_MASK) { Release (EC_MUTEX) Return (0) } |