From 56258ff92bcd0e930c62b6ae47567ed9b3b7efaf Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Wed, 15 Jan 2020 14:28:58 +0100 Subject: autoport: Improve formatting of EC ASL code Change-Id: I7fe3e798346e760eebb357f20e55ee1a71a1e31a Signed-off-by: Paul Menzel Reviewed-on: https://review.coreboot.org/c/coreboot/+/38436 Tested-by: build bot (Jenkins) Reviewed-by: Felix Held --- util/autoport/ec_fixme.go | 4 ++-- util/autoport/ec_lenovo.go | 8 ++++---- util/autoport/ec_none.go | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) (limited to 'util/autoport') diff --git a/util/autoport/ec_fixme.go b/util/autoport/ec_fixme.go index f54bb1ac50..f5d039cac4 100644 --- a/util/autoport/ec_fixme.go +++ b/util/autoport/ec_fixme.go @@ -20,10 +20,10 @@ func FIXMEEC(ctx Context) { } ap.WriteString( - `Method(_WAK,1) + `Method(_WAK, 1) { /* FIXME: EC support */ - Return(Package(){0,0}) + Return(Package() {0, 0}) } Method(_PTS,1) diff --git a/util/autoport/ec_lenovo.go b/util/autoport/ec_lenovo.go index 9384896dc8..e847e76eb8 100644 --- a/util/autoport/ec_lenovo.go +++ b/util/autoport/ec_lenovo.go @@ -40,12 +40,12 @@ func LenovoEC(ctx Context) { }, GPEDefine) ap.WriteString( - `Method(_WAK,1) + `Method(_WAK, 1) { /* ME may not be up yet. */ - Store (0, \_TZ.MEB1) - Store (0, \_TZ.MEB2) - Return(Package(){0,0}) + Store(0, \_TZ.MEB1) + Store(0, \_TZ.MEB2) + Return(Package() {0, 0}) } Method(_PTS,1) diff --git a/util/autoport/ec_none.go b/util/autoport/ec_none.go index 9158734777..eb2b87c2ed 100644 --- a/util/autoport/ec_none.go +++ b/util/autoport/ec_none.go @@ -5,12 +5,12 @@ func NoEC(ctx Context) { defer ap.Close() ap.WriteString( - `Method(_WAK,1) + `Method(_WAK, 1) { - Return(Package(){0,0}) + Return(Package() {0, 0}) } -Method(_PTS,1) +Method(_PTS, 1) { } `) -- cgit v1.2.3