diff --git a/src/freedreno/common/freedreno_dev_info.c b/src/freedreno/common/freedreno_dev_info.c index 24779e109d0..271eebc0ab2 100644 --- a/src/freedreno/common/freedreno_dev_info.c +++ b/src/freedreno/common/freedreno_dev_info.c @@ -75,7 +75,7 @@ fd_dev_info_raw(const struct fd_dev_id *id) return NULL; } -const struct fd_dev_info +struct fd_dev_info fd_dev_info(const struct fd_dev_id *id) { struct fd_dev_info modified = {}; diff --git a/src/freedreno/common/freedreno_dev_info.h b/src/freedreno/common/freedreno_dev_info.h index a1299a0dc09..7a302f9eb7b 100644 --- a/src/freedreno/common/freedreno_dev_info.h +++ b/src/freedreno/common/freedreno_dev_info.h @@ -513,7 +513,7 @@ fd_dev_is_supported(const struct fd_dev_id *id) { } /* Final dev info with dbg options and everything else applied. */ -const struct fd_dev_info fd_dev_info(const struct fd_dev_id *id); +struct fd_dev_info fd_dev_info(const struct fd_dev_id *id); const struct fd_dev_info *fd_dev_info_raw_by_name(const char *name);