Angel Pons has uploaded this change for review.

View Change

util/autoport: Make dsdt.asl prettier

Small cosmetic changes which fix OCD-inducing aesthetic inaccuracies.

Change-Id: I8fef4bbe12b283cee2ab8d078de950171757bbfe
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
---
M util/autoport/main.go
1 file changed, 7 insertions(+), 8 deletions(-)

git pull ssh://review.coreboot.org:29418/coreboot refs/changes/71/30971/1
diff --git a/util/autoport/main.go b/util/autoport/main.go
index ee26966..5d660d1 100644
--- a/util/autoport/main.go
+++ b/util/autoport/main.go
@@ -842,13 +842,14 @@

for _, define := range DSDTDefines {
if define.Comment != "" {
- fmt.Fprintf(dsdt, "\t/* %s. */\n", define.Comment)
+ fmt.Fprintf(dsdt, "\t/* %s. */\n", define.Comment)
}
dsdt.WriteString("#define " + define.Key + " " + define.Value + "\n")
}

dsdt.WriteString(
- `#include <arch/acpi.h>
+ `
+#include <arch/acpi.h>
DefinitionBlock(
"dsdt.aml",
"DSDT",
@@ -858,7 +859,7 @@
0x20141018 // OEM revision
)
{
- // Some generic macros
+ /* Some generic macros */
#include "acpi/platform.asl"
`)

@@ -870,9 +871,8 @@
}

dsdt.WriteString(`
- Scope (\_SB) {
- Device (PCI0)
- {
+ Device (\_SB.PCI0)
+ {
`)
for _, x := range DSDTPCI0Includes {
if x.Comment != "" {
@@ -881,8 +881,7 @@
fmt.Fprintf(dsdt, "\t\t#include <%s>\n", x.File)
}
dsdt.WriteString(
- ` }
- }
+ ` }
}
`)


To view, visit change 30971. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I8fef4bbe12b283cee2ab8d078de950171757bbfe
Gerrit-Change-Number: 30971
Gerrit-PatchSet: 1
Gerrit-Owner: Angel Pons <th3fanbus@gmail.com>
Gerrit-MessageType: newchange