ec/system76/ec: Convert to ASL 2.0 syntax

Change-Id: I83a4a3ad8a9fcb6071e0c700bf2be1676847aa9e
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/46107
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Jeremy Soller <jeremy@system76.com>
This commit is contained in:
Elyes HAOUAS 2020-10-06 18:08:38 +02:00 committed by Patrick Georgi
parent d5fc04bdc9
commit f8051e7c8b
2 changed files with 3 additions and 3 deletions

View File

@ -35,7 +35,7 @@ Device (\_SB.PCI0.LPCB.EC0)
Method (_REG, 2, Serialized) // _REG: Region Availability Method (_REG, 2, Serialized) // _REG: Region Availability
{ {
Debug = Concatenate("EC: _REG", Concatenate(ToHexString(Arg0), Concatenate(" ", ToHexString(Arg1)))) Debug = Concatenate("EC: _REG", Concatenate(ToHexString(Arg0), Concatenate(" ", ToHexString(Arg1))))
If (((Arg0 == 0x03) && (Arg1 == One))) { If ((Arg0 == 0x03) && (Arg1 == One)) {
// Enable hardware touchpad lock, airplane mode, and keyboard backlight keys // Enable hardware touchpad lock, airplane mode, and keyboard backlight keys
ECOS = 1 ECOS = 1

View File

@ -30,13 +30,13 @@ Device (HIDD)
Notify (HIDD, 0xC0) Notify (HIDD, 0xC0)
Local0 = Zero Local0 = Zero
While (((Local0 < 0xFA) && HBSY)) While ((Local0 < 0xFA) && HBSY)
{ {
Sleep (0x04) Sleep (0x04)
Local0++ Local0++
} }
If ((HBSY == One)) If (HBSY == One)
{ {
HBSY = Zero HBSY = Zero
HIDX = Zero HIDX = Zero