summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/powerplay/hwmgr/functiontables.c
diff options
context:
space:
mode:
authorNils Wallménius <nils.wallmenius@gmail.com>2016-04-10 16:30:03 +0200
committerAlex Deucher <alexander.deucher@amd.com>2016-05-04 20:20:17 -0400
commite90b62277b17207fa3854c4d8c3763d9974e7f47 (patch)
tree171724a298145aa430ada96dfb36b5a6b2bd197f /drivers/gpu/drm/amd/powerplay/hwmgr/functiontables.c
parentd3a84aa07445d7edb7f496cd41fdb27ed2653fad (diff)
downloadblackbird-obmc-linux-e90b62277b17207fa3854c4d8c3763d9974e7f47.tar.gz
blackbird-obmc-linux-e90b62277b17207fa3854c4d8c3763d9974e7f47.zip
drm/amd/powerplay: mark phm_master_table_* structs as const
Also adjust phm_construct_table to take a const pointer Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Nils Wallménius <nils.wallmenius@gmail.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/powerplay/hwmgr/functiontables.c')
-rw-r--r--drivers/gpu/drm/amd/powerplay/hwmgr/functiontables.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/functiontables.c b/drivers/gpu/drm/amd/powerplay/hwmgr/functiontables.c
index 72cfecc4f9f7..7a705cee0cc2 100644
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/functiontables.c
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/functiontables.c
@@ -84,7 +84,7 @@ int phm_dispatch_table(struct pp_hwmgr *hwmgr,
}
int phm_construct_table(struct pp_hwmgr *hwmgr,
- struct phm_master_table_header *master_table,
+ const struct phm_master_table_header *master_table,
struct phm_runtime_table_header *rt_table)
{
uint32_t function_count = 0;
OpenPOWER on IntegriCloud