aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorSubrata Banik <subrata.banik@intel.com>2018-05-02 10:27:36 +0530
committerPatrick Georgi <pgeorgi@google.com>2018-05-02 08:06:06 +0000
commit564547f2838599788d4b4873695394c9be61cf09 (patch)
treeb06a25394348746299c158eb55ecb18080449502 /src/include
parent00877386eec0e55d102864197fc29117f1159cb9 (diff)
src/device: Fix discarded-qualifiers compilation issue
coreboot build is broken due to CL: I6830a65bc9cea2907f4209bb97a53ccebcbf248d This patch ensures to build coreboot successfully. Change-Id: I4c9dfc9b19ce159ce1abcfbb287be4ce273cbaf1 Signed-off-by: Subrata Banik <subrata.banik@intel.com> Reviewed-on: https://review.coreboot.org/25985 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Furquan Shaikh <furquan@google.com> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/console/console.h2
-rw-r--r--src/include/device/device.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/include/console/console.h b/src/include/console/console.h
index 1ecf89c288..535401f7db 100644
--- a/src/include/console/console.h
+++ b/src/include/console/console.h
@@ -31,7 +31,7 @@ void post_code(u8 value);
#if IS_ENABLED(CONFIG_CMOS_POST_EXTRA)
void post_log_extra(u32 value);
struct device;
-void post_log_path(struct device *dev);
+void post_log_path(const struct device *dev);
void post_log_clear(void);
#else
#define post_log_extra(x) do {} while (0)
diff --git a/src/include/device/device.h b/src/include/device/device.h
index 48a5bcc221..744836d9ed 100644
--- a/src/include/device/device.h
+++ b/src/include/device/device.h
@@ -185,7 +185,7 @@ void scan_bridges(struct bus *bus);
void assign_resources(struct bus *bus);
const char *dev_name(struct device *dev);
const char *dev_path(const struct device *dev);
-u32 dev_path_encode(struct device *dev);
+u32 dev_path_encode(const struct device *dev);
const char *bus_path(struct bus *bus);
void dev_set_enabled(struct device *dev, int enable);
void disable_children(struct bus *bus);