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:
parent
d4a91aaf1f
commit
98be4d6ea5
|
@ -201,7 +201,7 @@ Method (BBST, 4, Serialized)
|
||||||
// 2: BATTERY REMAINING CAPACITY
|
// 2: BATTERY REMAINING CAPACITY
|
||||||
//
|
//
|
||||||
Store (BTRA, Local1)
|
Store (BTRA, Local1)
|
||||||
If (Arg3 && ACEX && LNot (BFDC && BFCG)) {
|
If (Arg3 && ACEX && !(BFDC && BFCG)) {
|
||||||
// On AC power and battery is neither charging
|
// On AC power and battery is neither charging
|
||||||
// nor discharging. Linux expects a full battery
|
// nor discharging. Linux expects a full battery
|
||||||
// to report same capacity as last full charge.
|
// to report same capacity as last full charge.
|
||||||
|
|
|
@ -489,7 +489,7 @@ Device (EC0)
|
||||||
*/
|
*/
|
||||||
Method (_Q09, 0, NotSerialized)
|
Method (_Q09, 0, NotSerialized)
|
||||||
{
|
{
|
||||||
If (LNot(Acquire (^PATM, 1000))) {
|
If (!Acquire (^PATM, 1000)) {
|
||||||
/* Read sensor ID for event */
|
/* Read sensor ID for event */
|
||||||
Store (^PATI, Local0)
|
Store (^PATI, Local0)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue