[XS] Change in coreboot[main]: ec/google/chromeec: Use logical operators in BSTA
Attention is currently required from: Boris Mittelberg, Caveh Jalali. Matt DeVillier has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/95896?usp=email ) Change subject: ec/google/chromeec: Use logical operators in BSTA ...................................................................... ec/google/chromeec: Use logical operators in BSTA BSTA combined the result of BTSW and the BTEX flag using bitwise NOT and AND. This only works because BTSW returns 0 or 1 and BTEX is a single bit. Use logical operators to express the intent directly. TEST=build 31 boards using the ChromeEC ASL; the only DSDT change is the BSTA condition (mini PCs, where BSTA returns 0, are unchanged). Change-Id: I82074624289d299c5fd18d0892c9b6b1549bb950 Signed-off-by: Matt DeVillier <matt.devillier@gmail.com> --- M src/ec/google/chromeec/acpi/battery.asl 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://review.coreboot.org:29418/coreboot refs/changes/96/95896/1 diff --git a/src/ec/google/chromeec/acpi/battery.asl b/src/ec/google/chromeec/acpi/battery.asl index 9c675c9..aef8d8f 100644 --- a/src/ec/google/chromeec/acpi/battery.asl +++ b/src/ec/google/chromeec/acpi/battery.asl @@ -47,7 +47,7 @@ Return (0) } - If (~BTSW (Arg0) & BTEX) { + If (!BTSW (Arg0) && BTEX) { Local0 = 0x1F } Else { Local0 = 0x0F -- To view, visit https://review.coreboot.org/c/coreboot/+/95896?usp=email To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: coreboot Gerrit-Branch: main Gerrit-Change-Id: I82074624289d299c5fd18d0892c9b6b1549bb950 Gerrit-Change-Number: 95896 Gerrit-PatchSet: 1 Gerrit-Owner: Matt DeVillier <matt.devillier@gmail.com> Gerrit-Reviewer: Boris Mittelberg <bmbm@google.com> Gerrit-Reviewer: Caveh Jalali <caveh@chromium.org> Gerrit-Attention: Boris Mittelberg <bmbm@google.com> Gerrit-Attention: Caveh Jalali <caveh@chromium.org>
participants (1)
-
Matt DeVillier (Code Review)