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 <patrick.rudolph@9elements.com> Signed-off-by: Shuo Liu <shuo.liu@intel.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/81275 Reviewed-by: Nico Huber <nico.h@gmx.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
72b8d2fbc7
commit
e56a41b33f
5 changed files with 21 additions and 20 deletions
|
|
@ -248,7 +248,7 @@ const char *dev_name(const struct device *dev)
|
|||
}
|
||||
|
||||
/* Returns the PCI domain for the given PCI device */
|
||||
struct device *dev_get_pci_domain(struct device *dev)
|
||||
const struct device *dev_get_pci_domain(const struct device *dev)
|
||||
{
|
||||
/* Walk up the tree up to the PCI domain */
|
||||
while (dev && dev->upstream && !is_root_device(dev)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue