summaryrefslogtreecommitdiff
path: root/src/superio/acpi/pnp.asl
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2022-12-12 01:18:31 +0100
committerFelix Singer <felixsinger@posteo.net>2022-12-12 22:14:15 +0000
commitbf1de40853e4ead8755d46588964032c6ff6d92c (patch)
tree7f446ac4bf066d039106c55029a9d21b3f93cf94 /src/superio/acpi/pnp.asl
parentfe33b4cb7ce0bab9269819b4e0d040cd9554411a (diff)
{soc,superio}/acpi: Replace Subtract(a,b,c) with ASL 2.0 syntax
Replace `Subtract (a, b, c)` with `c = a - b`. Change-Id: If6455ab2c91619f884abae227f1ac2e2c2af6ba9 Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/70625 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
Diffstat (limited to 'src/superio/acpi/pnp.asl')
-rw-r--r--src/superio/acpi/pnp.asl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/superio/acpi/pnp.asl b/src/superio/acpi/pnp.asl
index dc5c3909c4..6fdcb85898 100644
--- a/src/superio/acpi/pnp.asl
+++ b/src/superio/acpi/pnp.asl
@@ -121,10 +121,10 @@
#define PNP_WRITE_IRQ(IRQ_TO, RESOURCE, IRQ_TAG) \
CreateWordField (RESOURCE, IRQ_TAG._INT, IRQ_TAG##W)\
- Subtract (FindSetLeftBit (IRQ_TAG##W), 1, IRQ_TO)
+ IRQ_TO = FindSetLeftBit (IRQ_TAG##W) - 1
#define PNP_WRITE_DMA(DMA_TO, RESOURCE, DMA_TAG) \
CreateByteField (RESOURCE, DMA_TAG._DMA, DMA_TAG##W)\
- Subtract (FindSetLeftBit (DMA_TAG##W), 1, DMA_TO)
+ DMA_TO = FindSetLeftBit (DMA_TAG##W) - 1
#endif