aboutsummaryrefslogtreecommitdiff
path: root/src/include/device/device.h
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2018-05-21 01:52:10 +0300
committerKyösti Mälkki <kyosti.malkki@gmail.com>2018-05-25 02:45:17 +0000
commit2df1c124c4d2a05eee8af3572d0ab5f1de7b7cf3 (patch)
tree4d6db5d2361b28bf67e2fda49093d463526004f4 /src/include/device/device.h
parentf6a4344c5b41c30bd918371796962bce29872676 (diff)
device: Move find_dev_path() to device_const.c
Change-Id: I8a27aa7157b5706623272ba9354ed8dff9b8184f Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/26446 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/include/device/device.h')
-rw-r--r--src/include/device/device.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/device/device.h b/src/include/device/device.h
index e1b4a99cca..64add5dc1b 100644
--- a/src/include/device/device.h
+++ b/src/include/device/device.h
@@ -196,7 +196,9 @@ bool dev_is_active_bridge(struct device *dev);
void run_bios(struct device *dev, unsigned long addr);
/* Helper functions */
-struct device *find_dev_path(struct bus *parent, struct device_path *path);
+DEVTREE_CONST struct device *find_dev_path(
+ const struct bus *parent,
+ const 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);