summaryrefslogtreecommitdiff
path: root/src/device
diff options
context:
space:
mode:
Diffstat (limited to 'src/device')
-rw-r--r--src/device/device_util.c2
1 files changed, 1 insertions, 1 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;