summaryrefslogtreecommitdiff
path: root/util/intelp2m/fields
diff options
context:
space:
mode:
authorBenjamin Doron <benjamin.doron00@gmail.com>2020-10-22 16:36:29 +0000
committerPatrick Georgi <pgeorgi@google.com>2020-10-26 06:49:03 +0000
commit03102794115230e623ecb95e50e5d7f899956b84 (patch)
treef3a1f782258fc0d37173c272b86955d4be35c059 /util/intelp2m/fields
parent308c1b79768a0cb1c48a150f8a75da71dec99b5f (diff)
util/intelp2m: Fix typos
Change-Id: I7210fb44ed54d365181ca23c6b92d2269dc8a697 Signed-off-by: Benjamin Doron <benjamin.doron00@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/45007 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'util/intelp2m/fields')
-rw-r--r--util/intelp2m/fields/cb/cb.go6
-rw-r--r--util/intelp2m/fields/fsp/fsp.go6
2 files changed, 6 insertions, 6 deletions
diff --git a/util/intelp2m/fields/cb/cb.go b/util/intelp2m/fields/cb/cb.go
index 2a87cdaa88..3bda62e719 100644
--- a/util/intelp2m/fields/cb/cb.go
+++ b/util/intelp2m/fields/cb/cb.go
@@ -19,11 +19,11 @@ type field struct {
}
// generate - wrapper for generating bitfield macros string
-// fileds : field structure
-func generate(fileds ...*field) {
+// fields : field structure
+func generate(fields ...*field) {
macro := common.GetMacro()
var allhidden bool = true
- for _, field := range fileds {
+ for _, field := range fields {
if field.unhide {
allhidden = false
macro.Or()
diff --git a/util/intelp2m/fields/fsp/fsp.go b/util/intelp2m/fields/fsp/fsp.go
index fa26b5a5c9..360333afd5 100644
--- a/util/intelp2m/fields/fsp/fsp.go
+++ b/util/intelp2m/fields/fsp/fsp.go
@@ -15,10 +15,10 @@ type field struct {
}
// generate - wrapper for generating bitfield macros string
-// fileds : field structure
-func generate(fileds ...*field) {
+// fields : field structure
+func generate(fields ...*field) {
macro := common.GetMacro()
- for _, field := range fileds {
+ for _, field := range fields {
if field.override != nil {
// override if necessary
field.override(field.configmap, field.value)