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>
This commit is contained in:
parent
00877386ee
commit
564547f283
|
@ -108,7 +108,7 @@ void post_log_extra(u32 value)
|
|||
spin_unlock(&cmos_post_lock);
|
||||
}
|
||||
|
||||
void post_log_path(struct device *dev)
|
||||
void post_log_path(const struct device *dev)
|
||||
{
|
||||
if (dev) {
|
||||
/* Encode path into lower 3 bytes */
|
||||
|
|
|
@ -209,7 +209,7 @@ struct device *dev_find_class(unsigned int class, struct device *from)
|
|||
* @param dev The device path to encode.
|
||||
* @return Device path encoded into lower 3 bytes of dword.
|
||||
*/
|
||||
u32 dev_path_encode(struct device *dev)
|
||||
u32 dev_path_encode(const struct device *dev)
|
||||
{
|
||||
u32 ret;
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue