mb/lenovo/s230u/acpi: Replace Not(a, b) with ASL 2.0 syntax
Replace `Not (a, b)` with `b = ~a`. Change-Id: I0f18119c8e91222e59a56b8509f12c6ece6d04ce Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/71514 Reviewed-by: Elyes Haouas <ehaouas@noos.fr> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
c87c1abffb
commit
eaa31d95c2
|
@ -5,7 +5,7 @@ Scope (_GPE)
|
||||||
Name (PDET, Zero)
|
Name (PDET, Zero)
|
||||||
Method (PNOT, 2, Serialized) {
|
Method (PNOT, 2, Serialized) {
|
||||||
Local0 = Arg0 << Arg1
|
Local0 = Arg0 << Arg1
|
||||||
Not(One << Arg1, Local1)
|
Local1 = ~(1 << Arg1)
|
||||||
PDET = Local0 | (Local1 & PDET)
|
PDET = Local0 | (Local1 & PDET)
|
||||||
If (PDET == Zero) {
|
If (PDET == Zero) {
|
||||||
// Palm removed
|
// Palm removed
|
||||||
|
@ -19,7 +19,7 @@ Scope (_GPE)
|
||||||
Method (TINV, 2, Serialized) {
|
Method (TINV, 2, Serialized) {
|
||||||
Local0 = One << Arg1
|
Local0 = One << Arg1
|
||||||
If (Arg0 == Zero) {
|
If (Arg0 == Zero) {
|
||||||
Not (Local0, Local0)
|
Local0 = ~Local0
|
||||||
GIV0 &= Local0
|
GIV0 &= Local0
|
||||||
} Else {
|
} Else {
|
||||||
GIV0 |= Local0
|
GIV0 |= Local0
|
||||||
|
|
Loading…
Reference in New Issue