summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2022-12-12 01:47:52 +0100
committerFelix Singer <felixsinger@posteo.net>2022-12-12 22:17:43 +0000
commiteb99f62456fc44f4db6c2f08316b4b56082dbfa6 (patch)
tree07960b5cfdb6013dd30ef1bd352bd80dd37926e3 /src/drivers
parent447c399d35ecf169f78531b26d474ef1261d981d (diff)
{drivers,superio}/acpi: Replace ShiftRight(a,b) with ASL 2.0 syntax
Replace `ShiftRight (a, b)` with `a >> b`. Change-Id: I0751d00186e8dff38e02e7bf7d8ebf5a17514a58 Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/70628 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com> Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/intel/gma/acpi/configure_brightness_levels.asl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/intel/gma/acpi/configure_brightness_levels.asl b/src/drivers/intel/gma/acpi/configure_brightness_levels.asl
index c1f11047b8..342f760f82 100644
--- a/src/drivers/intel/gma/acpi/configure_brightness_levels.asl
+++ b/src/drivers/intel/gma/acpi/configure_brightness_levels.asl
@@ -76,7 +76,7 @@
Sleep (1)
If (And (ASLC, 0x2) == 0) {
/* Request has been processed, check status: */
- And (ShiftRight (ASLC, 12), 0x3, Local1)
+ And (ASLC >> 12, 0x3, Local1)
If (Local1 == 0) {
Return (Zero)
} Else {