From 2df1c124c4d2a05eee8af3572d0ab5f1de7b7cf3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=C3=B6sti=20M=C3=A4lkki?= Date: Mon, 21 May 2018 01:52:10 +0300 Subject: device: Move find_dev_path() to device_const.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I8a27aa7157b5706623272ba9354ed8dff9b8184f Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/26446 Tested-by: build bot (Jenkins) Reviewed-by: Nico Huber Reviewed-by: Aaron Durbin --- src/include/device/device.h | 4 +++- src/include/device/path.h | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src/include/device') 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); diff --git a/src/include/device/path.h b/src/include/device/path.h index 067a507166..0d9c681c88 100644 --- a/src/include/device/path.h +++ b/src/include/device/path.h @@ -125,7 +125,6 @@ struct device_path { #define DEVICE_PATH_MAX 30 #define BUS_PATH_MAX (DEVICE_PATH_MAX+10) -extern int path_eq(struct device_path *path1, struct device_path *path2); extern const char *dev_path_name(enum device_path_type type); #endif /* DEVICE_PATH_H */ -- cgit v1.2.3