summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/device/device_util.c2
-rw-r--r--src/include/device/device.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/device/device_util.c b/src/device/device_util.c
index 25e95cfa67..aa2f06a332 100644
--- a/src/device/device_util.c
+++ b/src/device/device_util.c
@@ -225,7 +225,7 @@ const char *dev_path(const struct device *dev)
return buffer;
}
-const char *dev_name(struct device *dev)
+const char *dev_name(const struct device *dev)
{
if (dev->name)
return dev->name;
diff --git a/src/include/device/device.h b/src/include/device/device.h
index 295415aa7f..40aa2d0419 100644
--- a/src/include/device/device.h
+++ b/src/include/device/device.h
@@ -182,7 +182,7 @@ void dev_finalize_chips(void);
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_name(const struct device *dev);
const char *dev_path(const struct device *dev);
u32 dev_path_encode(const struct device *dev);
const char *bus_path(struct bus *bus);