diff options
author | Maxim Polyakov <max.senia.poliak@gmail.com> | 2021-06-30 16:14:53 +0300 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2021-07-02 07:48:58 +0000 |
commit | 8b35851e4c994943fab1d0f0c484e5f38cd0729c (patch) | |
tree | f14fd90b4b8e2b5fcc6a6343cf9155e7eb27324a /util/intelp2m/fields | |
parent | 421ce56f833edcfe34788ff07ebf5e09d582ff9f (diff) |
util/intelp2m: use import once for all included modules
There is no need to repeat "import" for each module in GoLang. Use
this keyword only once in each file for code cleanliness.
Change-Id: Ibb24fafd409b31b174946a39ca1f810d59b87e76
Signed-off-by: Maxim Polyakov <max.senia.poliak@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/55985
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'util/intelp2m/fields')
-rw-r--r-- | util/intelp2m/fields/cb/cb.go | 6 | ||||
-rw-r--r-- | util/intelp2m/fields/fields.go | 13 | ||||
-rw-r--r-- | util/intelp2m/fields/raw/raw.go | 6 |
3 files changed, 15 insertions, 10 deletions
diff --git a/util/intelp2m/fields/cb/cb.go b/util/intelp2m/fields/cb/cb.go index 3bda62e719..3603aac532 100644 --- a/util/intelp2m/fields/cb/cb.go +++ b/util/intelp2m/fields/cb/cb.go @@ -1,7 +1,9 @@ package cb -import "../../config" -import "../../platforms/common" +import ( + "../../config" + "../../platforms/common" +) type FieldMacros struct {} diff --git a/util/intelp2m/fields/fields.go b/util/intelp2m/fields/fields.go index d2ca0e8d80..e8d8625d0c 100644 --- a/util/intelp2m/fields/fields.go +++ b/util/intelp2m/fields/fields.go @@ -1,11 +1,12 @@ package fields -import "../config" -import "../platforms/common" - -import "./fsp" -import "./cb" -import "./raw" +import ( + "../config" + "../platforms/common" + "./fsp" + "./cb" + "./raw" +) // InterfaceSet - set the interface for decoding configuration // registers DW0 and DW1. diff --git a/util/intelp2m/fields/raw/raw.go b/util/intelp2m/fields/raw/raw.go index a54e51d9b1..e6fa25c7ee 100644 --- a/util/intelp2m/fields/raw/raw.go +++ b/util/intelp2m/fields/raw/raw.go @@ -1,7 +1,9 @@ package raw -import "fmt" -import "../../platforms/common" +import ( + "fmt" + "../../platforms/common" +) type FieldMacros struct {} |