summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/powerplay/hwmgr/pp_overdriver.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2017-09-28 09:36:55 +1000
committerAlex Deucher <alexander.deucher@amd.com>2017-09-28 16:03:26 -0400
commit819c4b949d3af009f0111e4a9ddfe3de5f2c2fe1 (patch)
tree158086f30d1a82eb6f9b6045e6f28b6e163f1c89 /drivers/gpu/drm/amd/powerplay/hwmgr/pp_overdriver.c
parentf87c379ee073bec8451fbee9ea6922db1e6ac897 (diff)
amdgpu/pp: move amdgpu_fuses_default into static const.
There is no reason that this gets passed back into the function from outside the file, just reference the table directly. Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/powerplay/hwmgr/pp_overdriver.c')
-rw-r--r--drivers/gpu/drm/amd/powerplay/hwmgr/pp_overdriver.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/pp_overdriver.c b/drivers/gpu/drm/amd/powerplay/hwmgr/pp_overdriver.c
index 34fdf1a2e2df..2b08371102be 100644
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/pp_overdriver.c
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/pp_overdriver.c
@@ -1,7 +1,7 @@
#include "pp_overdriver.h"
#include <linux/errno.h>
-const struct phm_fuses_default vega10_fuses_default[] = {
+static const struct phm_fuses_default vega10_fuses_default[] = {
{"0000001000010011111010101001010011011110000011100100100101100100",0x00003C96,0xFFFFE226,0x00000656,0x00002203,0xFFFFF201,0x000003FF,0x00002203,0xFFFFF201,0x000003FF},
{"0000001000010011111010101001010011011110000010100001100010000100",0x00003CC5,0xFFFFE23A,0x0000064E,0x00002258,0xFFFFF1F7,0x000003FC,0x00002258,0xFFFFF1F7,0x000003FC},
{"0000001000010011111010101001010011011110000011100011000110100100",0x00003CAF,0xFFFFE36E,0x00000602,0x00001E98,0xFFFFF569,0x00000357,0x00001E98,0xFFFFF569,0x00000357},
@@ -1240,9 +1240,9 @@ const struct phm_fuses_default vega10_fuses_default[] = {
};
int pp_override_get_default_fuse_value(uint64_t key,
- const struct phm_fuses_default list[],
struct phm_fuses_default *result)
{
+ const struct phm_fuses_default *list = vega10_fuses_default;
uint32_t i;
uint64_t temp_serial_numer;
uint32_t bit;