diff options
author | Paul Menzel <pmenzel@molgen.mpg.de> | 2020-01-15 14:28:58 +0100 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2020-01-16 13:21:56 +0000 |
commit | 56258ff92bcd0e930c62b6ae47567ed9b3b7efaf (patch) | |
tree | 1f76c76fc1928422c1b3390d99b8765763b7e373 /util/autoport | |
parent | aa30d6237e0b55cbf15e5312ad68efdfbdc85642 (diff) |
autoport: Improve formatting of EC ASL code
Change-Id: I7fe3e798346e760eebb357f20e55ee1a71a1e31a
Signed-off-by: Paul Menzel <pmenzel@molgen.mpg.de>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/38436
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'util/autoport')
-rw-r--r-- | util/autoport/ec_fixme.go | 4 | ||||
-rw-r--r-- | util/autoport/ec_lenovo.go | 8 | ||||
-rw-r--r-- | util/autoport/ec_none.go | 6 |
3 files changed, 9 insertions, 9 deletions
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) { } `) |