From e56a41b33fd2e52a6bfeec5a0a845c9c2d4e9b01 Mon Sep 17 00:00:00 2001 From: Patrick Rudolph Date: Thu, 14 Mar 2024 09:24:12 +0100 Subject: device/device_util: Use const qualifier Allows to use the function in more places that expect the struct device to be readonly. TEST=Build and boot on intel/archercity CRB Change-Id: Iac04fe6931a43070f6638b399adbff2ce64829c9 Signed-off-by: Patrick Rudolph Signed-off-by: Shuo Liu Reviewed-on: https://review.coreboot.org/c/coreboot/+/81275 Reviewed-by: Nico Huber Tested-by: build bot (Jenkins) --- src/include/device/device.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/include/device') diff --git a/src/include/device/device.h b/src/include/device/device.h index 7bc1c0a6dd..7f73d2b362 100644 --- a/src/include/device/device.h +++ b/src/include/device/device.h @@ -182,7 +182,7 @@ void assign_resources(struct bus *bus); const char *dev_name(const struct device *dev); const char *dev_path(const struct device *dev); u32 dev_path_encode(const struct device *dev); -struct device *dev_get_pci_domain(struct device *dev); +const struct device *dev_get_pci_domain(const struct device *dev); void dev_set_enabled(struct device *dev, int enable); void disable_children(struct bus *bus); bool dev_is_active_bridge(struct device *dev); -- cgit v1.2.3