From 9ba8f7c28e23c4064e09a40c383f2713ad955c25 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Thu, 26 Apr 2018 00:00:22 +0200 Subject: device: constify some variables Change-Id: I6830a65bc9cea2907f4209bb97a53ccebcbf248d Signed-off-by: Lubomir Rintel Reviewed-on: https://review.coreboot.org/25873 Reviewed-by: Aaron Durbin Reviewed-by: Paul Menzel Tested-by: build bot (Jenkins) --- src/include/device/device.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/include') diff --git a/src/include/device/device.h b/src/include/device/device.h index acead58f8a..48a5bcc221 100644 --- a/src/include/device/device.h +++ b/src/include/device/device.h @@ -184,7 +184,7 @@ int reset_bus(struct bus *bus); void scan_bridges(struct bus *bus); void assign_resources(struct bus *bus); const char *dev_name(struct device *dev); -const char *dev_path(struct device *dev); +const char *dev_path(const struct device *dev); u32 dev_path_encode(struct device *dev); const char *bus_path(struct bus *bus); void dev_set_enabled(struct device *dev, int enable); @@ -216,9 +216,9 @@ void set_cpu_topology(struct device *cpu, unsigned int node, set_cpu_topology(cpu, 0, package, core, thread) /* Debug functions */ -void print_resource_tree(struct device *root, int debug_level, +void print_resource_tree(const struct device *root, int debug_level, const char *msg); -void show_devs_tree(struct device *dev, int debug_level, int depth); +void show_devs_tree(const struct device *dev, int debug_level, int depth); void show_devs_subtree(struct device *root, int debug_level, const char *msg); void show_all_devs(int debug_level, const char *msg); void show_all_devs_tree(int debug_level, const char *msg); -- cgit v1.2.3