util/spd_tools: Run go fmt on all .go files

This just reformats these files. go fmt should probably be
run on the check-in of every .go file.

Signed-off-by: Martin Roth <martin@coreboot.org>
Change-Id: I70ced115bad42d123474b18bbff2e4c0a16f3d88
Reviewed-on: https://review.coreboot.org/c/coreboot/+/51019
Reviewed-by: Furquan Shaikh <furquan@google.com>
Reviewed-by: EricR Lai <ericr_lai@compal.corp-partner.google.com>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Martin Roth
2021-02-22 20:11:18 -07:00
committed by Patrick Georgi
parent db717db5c5
commit f0a7e36527
4 changed files with 330 additions and 333 deletions

View File

@@ -54,6 +54,7 @@ type usedPart struct {
partName string partName string
index int index int
} }
/* /*
* Read input file CSV that contains list of memory part names used by the variant * Read input file CSV that contains list of memory part names used by the variant
* and an optional assigned id. * and an optional assigned id.

View File

@@ -10,9 +10,9 @@ import (
"os" "os"
"path/filepath" "path/filepath"
"reflect" "reflect"
"regexp"
"strconv" "strconv"
"strings" "strings"
"regexp"
) )
/* /*
@@ -844,7 +844,6 @@ const (
/* As per JEDEC spec, unused digits of manufacturer part number are left as blank. */ /* As per JEDEC spec, unused digits of manufacturer part number are left as blank. */
SPDValueManufacturerPartNumberBlank = 0x20 SPDValueManufacturerPartNumberBlank = 0x20
) )
const ( const (
@@ -951,7 +950,6 @@ func isManufacturerPartNumberByte(index int) bool {
return false return false
} }
func getSPDByte(index int, memAttribs *memAttributes) byte { func getSPDByte(index int, memAttribs *memAttributes) byte {
e, ok := SPDAttribTable[index] e, ok := SPDAttribTable[index]
if ok == false { if ok == false {
@@ -1059,7 +1057,6 @@ func validateRanksPerPackage(ranks int) error {
return fmt.Errorf("Incorrect package ranks: ", ranks) return fmt.Errorf("Incorrect package ranks: ", ranks)
} }
func validateCASLatency(CL int) error { func validateCASLatency(CL int) error {
if CL >= 10 && CL <= 24 && CL != 23 { if CL >= 10 && CL <= 24 && CL != 23 {
return nil return nil
@@ -1320,7 +1317,6 @@ func updateTRASMin(memAttribs *memAttributes) {
} }
} }
func updateTRCMin(memAttribs *memAttributes) { func updateTRCMin(memAttribs *memAttributes) {
if memAttribs.TRCMinPs == 0 { if memAttribs.TRCMinPs == 0 {
memAttribs.TRCMinPs = getTRCMinPs(memAttribs) memAttribs.TRCMinPs = getTRCMinPs(memAttribs)