summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2019-04-22 14:06:42 -0500
committerAlex Deucher <alexander.deucher@amd.com>2019-06-21 18:59:26 -0500
commit8b2ae145de4cd263b96c67d5ba936cd0c896b0c2 (patch)
treee30aad37117f1501f631ee273be6f85a17e37470 /drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
parent22c9c6ca9658f75b45806eaf551c0b2736979fe3 (diff)
downloadlinux-8b2ae145de4cd263b96c67d5ba936cd0c896b0c2.tar.bz2
drm/amd/powerplay/smu11: remove smu_update_table_with_arg
Nothing was using it. Just replace with smu_update_table which is what everything was using via a wrapper anyway. Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/powerplay/amdgpu_smu.c')
-rw-r--r--drivers/gpu/drm/amd/powerplay/amdgpu_smu.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
index e6eec55be487..fedd5ff694f2 100644
--- a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
+++ b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
@@ -127,19 +127,17 @@ int smu_common_read_sensor(struct smu_context *smu, enum amd_pp_sensors sensor,
return ret;
}
-int smu_update_table_with_arg(struct smu_context *smu, uint16_t table_id, uint16_t exarg,
+int smu_update_table(struct smu_context *smu, uint32_t table_index,
void *table_data, bool drv2smu)
{
struct smu_table_context *smu_table = &smu->smu_table;
struct smu_table *table = NULL;
int ret = 0;
- uint32_t table_index;
+ int table_id = table_index & 0xffff;
if (!table_data || table_id >= smu_table->table_count)
return -EINVAL;
- table_index = (exarg << 16) | table_id;
-
table = &smu_table->tables[table_id];
if (drv2smu)