diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2018-04-26 00:00:22 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2018-04-30 06:22:13 +0000 |
commit | 9ba8f7c28e23c4064e09a40c383f2713ad955c25 (patch) | |
tree | bb0b22fb8cd6a0f01f4564b6042d6af62eb342f9 /src/include/device | |
parent | ecef322bf4a1d2033286c10970f09663a1214ebb (diff) | |
download | coreboot-9ba8f7c28e23c4064e09a40c383f2713ad955c25.tar.xz |
device: constify some variables
Change-Id: I6830a65bc9cea2907f4209bb97a53ccebcbf248d
Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Reviewed-on: https://review.coreboot.org/25873
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/include/device')
-rw-r--r-- | src/include/device/device.h | 6 |
1 files changed, 3 insertions, 3 deletions
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); |