diff options
author | Nils Wallménius <nils.wallmenius@gmail.com> | 2016-04-25 21:31:34 +0200 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-05-04 20:30:34 -0400 |
commit | 909a0631b1e64428a98002ad1ea470fa83d95843 (patch) | |
tree | ef3021f8a78c3640ac9a7694f544ec30e995718f /drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_thermal.c | |
parent | 58174c2787c8fe7f36b195fbacf4ac174341d889 (diff) |
drm/amdgpu: Constify some tables
Some more tables with constant data were added with the polaris support
v2: missed a few
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/polaris10_thermal.c')
-rw-r--r-- | drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_thermal.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_thermal.c b/drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_thermal.c index d39c89bbdab0..956e00ca361a 100644 --- a/drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_thermal.c +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_thermal.c @@ -638,7 +638,7 @@ static int tf_polaris10_thermal_avfs_enable(struct pp_hwmgr *hwmgr, return ret; } -static struct phm_master_table_item +static const struct phm_master_table_item polaris10_thermal_start_thermal_controller_master_list[] = { {NULL, tf_polaris10_thermal_initialize}, {NULL, tf_polaris10_thermal_set_temperature_range}, @@ -654,14 +654,14 @@ polaris10_thermal_start_thermal_controller_master_list[] = { {NULL, NULL} }; -static struct phm_master_table_header +static const struct phm_master_table_header polaris10_thermal_start_thermal_controller_master = { 0, PHM_MasterTableFlag_None, polaris10_thermal_start_thermal_controller_master_list }; -static struct phm_master_table_item +static const struct phm_master_table_item polaris10_thermal_set_temperature_range_master_list[] = { {NULL, tf_polaris10_thermal_disable_alert}, {NULL, tf_polaris10_thermal_set_temperature_range}, @@ -669,7 +669,7 @@ polaris10_thermal_set_temperature_range_master_list[] = { {NULL, NULL} }; -struct phm_master_table_header +static const struct phm_master_table_header polaris10_thermal_set_temperature_range_master = { 0, PHM_MasterTableFlag_None, |