aboutsummaryrefslogtreecommitdiff
path: root/src/include/device/device.h
diff options
context:
space:
mode:
authorNico Huber <nico.huber@secunet.com>2018-05-15 14:13:32 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2018-05-25 02:44:04 +0000
commitf6a4344c5b41c30bd918371796962bce29872676 (patch)
treea41fa95d9f426c35a484c03663b5525dbc873c42 /src/include/device/device.h
parent81ec9c0500e4b53440579ffad0011a6b077b6bdb (diff)
device: Move dev_find_path() to device_const.c
Make it available early and use it in dev_find_next_pci_device(). Change-Id: I1d0ad07f37ea79dae2b9a592fcccba5e03fd86d5 Signed-off-by: Nico Huber <nico.huber@secunet.com> Reviewed-on: https://review.coreboot.org/26294 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Diffstat (limited to 'src/include/device/device.h')
-rw-r--r--src/include/device/device.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/include/device/device.h b/src/include/device/device.h
index f3afd60b2c..e1b4a99cca 100644
--- a/src/include/device/device.h
+++ b/src/include/device/device.h
@@ -200,8 +200,9 @@ struct device *find_dev_path(struct bus *parent, struct device_path *path);
struct device *alloc_find_dev(struct bus *parent, struct device_path *path);
struct device *dev_find_device(u16 vendor, u16 device, struct device *from);
struct device *dev_find_class(unsigned int class, struct device *from);
-struct device *dev_find_path(struct device *prev_match,
- enum device_path_type path_type);
+DEVTREE_CONST struct device *dev_find_path(
+ DEVTREE_CONST struct device *prev_match,
+ enum device_path_type path_type);
struct device *dev_find_lapic(unsigned int apic_id);
int dev_count_cpu(void);