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:
parent
db717db5c5
commit
f0a7e36527
|
@ -54,6 +54,7 @@ type usedPart struct {
|
|||
partName string
|
||||
index int
|
||||
}
|
||||
|
||||
/*
|
||||
* Read input file CSV that contains list of memory part names used by the variant
|
||||
* and an optional assigned id.
|
||||
|
|
|
@ -10,9 +10,9 @@ import (
|
|||
"os"
|
||||
"path/filepath"
|
||||
"reflect"
|
||||
"regexp"
|
||||
"strconv"
|
||||
"strings"
|
||||
"regexp"
|
||||
)
|
||||
|
||||
/*
|
||||
|
@ -844,7 +844,6 @@ const (
|
|||
|
||||
/* As per JEDEC spec, unused digits of manufacturer part number are left as blank. */
|
||||
SPDValueManufacturerPartNumberBlank = 0x20
|
||||
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -951,7 +950,6 @@ func isManufacturerPartNumberByte(index int) bool {
|
|||
return false
|
||||
}
|
||||
|
||||
|
||||
func getSPDByte(index int, memAttribs *memAttributes) byte {
|
||||
e, ok := SPDAttribTable[index]
|
||||
if ok == false {
|
||||
|
@ -1059,7 +1057,6 @@ func validateRanksPerPackage(ranks int) error {
|
|||
return fmt.Errorf("Incorrect package ranks: ", ranks)
|
||||
}
|
||||
|
||||
|
||||
func validateCASLatency(CL int) error {
|
||||
if CL >= 10 && CL <= 24 && CL != 23 {
|
||||
return nil
|
||||
|
@ -1320,7 +1317,6 @@ func updateTRASMin(memAttribs *memAttributes) {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
func updateTRCMin(memAttribs *memAttributes) {
|
||||
if memAttribs.TRCMinPs == 0 {
|
||||
memAttribs.TRCMinPs = getTRCMinPs(memAttribs)
|
||||
|
|
Loading…
Reference in New Issue