Lean Sheng Tan submitted this change.

View Change

Approvals: build bot (Jenkins): Verified Felix Held: Looks good to me, approved Lean Sheng Tan: Looks good to me, approved
device_util: Drop unused function bus_path

Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Change-Id: Id23a291af20473c3b3e67178b66fcde920d49984
Reviewed-on: https://review.coreboot.org/c/coreboot/+/80097
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Reviewed-by: Lean Sheng Tan <sheng.tan@9elements.com>
---
M src/device/device_util.c
M src/include/device/device.h
2 files changed, 0 insertions(+), 9 deletions(-)

diff --git a/src/device/device_util.c b/src/device/device_util.c
index ac2d33c..42dc89a 100644
--- a/src/device/device_util.c
+++ b/src/device/device_util.c
@@ -249,14 +249,6 @@
return "unknown";
}

-const char *bus_path(struct bus *bus)
-{
- static char buffer[BUS_PATH_MAX];
- snprintf(buffer, sizeof(buffer),
- "%s,%d", dev_path(bus->dev), bus->link_num);
- return buffer;
-}
-
/**
* Allocate 64 more resources to the free list.
*
diff --git a/src/include/device/device.h b/src/include/device/device.h
index 752e1c0..1387051 100644
--- a/src/include/device/device.h
+++ b/src/include/device/device.h
@@ -189,7 +189,6 @@
const char *dev_name(const struct device *dev);
const char *dev_path(const struct device *dev);
u32 dev_path_encode(const struct device *dev);
-const char *bus_path(struct bus *bus);
void dev_set_enabled(struct device *dev, int enable);
void disable_children(struct bus *bus);
bool dev_is_active_bridge(struct device *dev);

To view, visit change 80097. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: Id23a291af20473c3b3e67178b66fcde920d49984
Gerrit-Change-Number: 80097
Gerrit-PatchSet: 2
Gerrit-Owner: Arthur Heymans <arthur@aheymans.xyz>
Gerrit-Reviewer: Felix Held <felix-coreboot@felixheld.de>
Gerrit-Reviewer: Lean Sheng Tan <sheng.tan@9elements.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-MessageType: merged