ec/google/chromeec/acpi: Replace LNot() with ASL 2.0 syntax

Replace `LNot (a)` with `!a`.

Change-Id: I2bf5a09df831b66197c2a9af780c873290e12b42
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/60593
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
This commit is contained in:
Felix Singer 2021-12-31 14:32:03 +01:00
parent d4a91aaf1f
commit 98be4d6ea5
2 changed files with 2 additions and 2 deletions

View File

@ -201,7 +201,7 @@ Method (BBST, 4, Serialized)
// 2: BATTERY REMAINING CAPACITY
//
Store (BTRA, Local1)
If (Arg3 && ACEX && LNot (BFDC && BFCG)) {
If (Arg3 && ACEX && !(BFDC && BFCG)) {
// On AC power and battery is neither charging
// nor discharging. Linux expects a full battery
// to report same capacity as last full charge.

View File

@ -489,7 +489,7 @@ Device (EC0)
*/
Method (_Q09, 0, NotSerialized)
{
If (LNot(Acquire (^PATM, 1000))) {
If (!Acquire (^PATM, 1000)) {
/* Read sensor ID for event */
Store (^PATI, Local0)