summaryrefslogtreecommitdiff
path: root/util/sconfig/sconfig.h
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@google.com>2020-05-02 15:34:42 -0700
committerFurquan Shaikh <furquan@google.com>2020-05-07 11:55:27 +0000
commit4ebe953090df979a76b99a532b2f28e697fbf365 (patch)
tree7888d12f2d42c57f42bd5260f03aa9e7fcecc968 /util/sconfig/sconfig.h
parent40454b7b00a59bec178da3527d933d126ca1fbd6 (diff)
util/sconfig: Drop id from struct device maintained by sconfig
This change drops the id field from struct device as used by sconfig. It was primarily used for generating unique device names. This was maintained within device structure so that the order in which the device tree entries were parsed is clear. Since the ids are assigned in parsing order, it is problematic when a device is moved from base devicetree to override tree. The entire parsing order changes which makes it really difficult to compare what really changed in static.c file. By moving the dev name assignment to happen later when doing pass0 of static.c generation, the difference in static.c file is minimized when adding support for override trees. BUG=b:155549176 Change-Id: I31870ace5a2fd7d5f95ab5e30d794c3bc959ed46 Signed-off-by: Furquan Shaikh <furquan@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/41005 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'util/sconfig/sconfig.h')
-rw-r--r--util/sconfig/sconfig.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/util/sconfig/sconfig.h b/util/sconfig/sconfig.h
index 60842f12a1..a76506d31d 100644
--- a/util/sconfig/sconfig.h
+++ b/util/sconfig/sconfig.h
@@ -43,10 +43,7 @@ struct pci_irq_info {
struct chip;
struct chip_instance {
- /*
- * Monotonically increasing ID for each newly allocated
- * node(chip/device).
- */
+ /* Monotonically increasing ID for each chip instance. */
int id;
/* Pointer to registers for this chip. */
@@ -98,9 +95,6 @@ struct bus {
};
struct device {
- /* Monotonically increasing ID for the device. */
- int id;
-
/* Indicates device status (enabled / hidden or not). */
int enabled;
int hidden;