drm/amd/pm: Clean up errors in smu_v13_0_7_ppt.c
Subsystems (4)
PATCH 1/1 drm/amd/pm: Clean up errors in smu_v13_0_7_ppt.c
Fix the following errors reported by checkpatch:
ERROR: open brace '{' following struct go on the same line
ERROR: spaces required around that '=' (ctx:VxW)
ERROR: that open brace { should be on the previous line
Signed-off-by Ran Sun <[email protected]>
--- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-)
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c +4 -6
@@ -386,8 +386,7 @@ static int smu_v13_0_7_check_fw_status(struct smu_context *smu) }#ifndef atom_smc_dpm_info_table_13_0_7 -struct atom_smc_dpm_info_table_13_0_7 -{ +struct atom_smc_dpm_info_table_13_0_7 {struct atom_common_table_header table_header;BoardTable_t BoardTable; };
@@ -494,7 +493,7 @@ static int smu_v13_0_7_tables_init(struct smu_context *smu) PAGE_SIZE, AMDGPU_GEM_DOMAIN_VRAM);SMU_TABLE_INIT (tables,SMU_TABLE_ACTIVITY_MONITOR_COEFF ,sizeof (DpmActivityMonitorCoeffIntExternal_t),PAGE_SIZE , -AMDGPU_GEM_DOMAIN_VRAM ); +AMDGPU_GEM_DOMAIN_VRAM );SMU_TABLE_INIT (tables,SMU_TABLE_COMBO_PPTABLE ,MP0_MP1_DATA_REGION_SIZE_COMBOPPTABLE ,PAGE_SIZE ,AMDGPU_GEM_DOMAIN_VRAM );
@@ -728,7 +727,7 @@ static int smu_v13_0_7_get_smu_metrics_data(struct smu_context *smu,MetricsMember_t member, uint32_t *value) { - struct smu_table_context *smu_table= &smu->smu_table; + struct smu_table_context *smu_table = &smu->smu_table;SmuMetrics_t *metrics = &(((SmuMetricsExternal_t *)(smu_table->metrics_table))->SmuMetrics);int ret =0 ;
@@ -1635,8 +1634,7 @@ static int smu_v13_0_7_force_clk_levels(struct smu_context *smu,return ret; } -static const struct smu_temperature_range smu13_thermal_policy[] = -{ +static const struct smu_temperature_range smu13_thermal_policy[] = { {-273150 ,99000 ,99000 ,-273150 ,99000 ,99000 ,-273150 ,99000 ,99000 }, {120000 ,120000 ,120000 ,120000 ,120000 ,120000 ,120000 ,120000 ,120000 }, };
Signature · 1 line
2.17.1
Alex Deucher
AppliedApplied. Thanks!
Quoted 57 lines · Ran Sun
Fix the following errors reported by checkpatch:
ERROR: open brace '{' following struct go on the same line
ERROR: spaces required around that '=' (ctx:VxW)
ERROR: that open brace { should be on the previous lineSigned-off-by Ran Sun <[email protected]>--- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-)drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c +4
-7@@ -386,8 +386,7 @@ static int smu_v13_0_7_check_fw_status(struct smu_context *smu) }#ifndef atom_smc_dpm_info_table_13_0_7 -struct atom_smc_dpm_info_table_13_0_7 -{ +struct atom_smc_dpm_info_table_13_0_7 {struct atom_common_table_header table_header;BoardTable_t BoardTable; };@@ -494,7 +493,7 @@ static int smu_v13_0_7_tables_init(struct smu_context *smu) PAGE_SIZE, AMDGPU_GEM_DOMAIN_VRAM);SMU_TABLE_INIT (tables,SMU_TABLE_ACTIVITY_MONITOR_COEFF ,sizeof (DpmActivityMonitorCoeffIntExternal_t),PAGE_SIZE , -AMDGPU_GEM_DOMAIN_VRAM ); +AMDGPU_GEM_DOMAIN_VRAM );SMU_TABLE_INIT (tables,SMU_TABLE_COMBO_PPTABLE ,MP0_MP1_DATA_REGION_SIZE_COMBOPPTABLE ,PAGE_SIZE ,AMDGPU_GEM_DOMAIN_VRAM );@@ -728,7 +727,7 @@ static int smu_v13_0_7_get_smu_metrics_data(struct smu_context *smu,MetricsMember_t member, uint32_t *value) { - struct smu_table_context *smu_table= &smu->smu_table; + struct smu_table_context *smu_table = &smu->smu_table;SmuMetrics_t *metrics = &(((SmuMetricsExternal_t *)(smu_table->metrics_table))->SmuMetrics);int ret =0 ;@@ -1635,8 +1634,7 @@ static int smu_v13_0_7_force_clk_levels(struct smu_context *smu,return ret; } -static const struct smu_temperature_range smu13_thermal_policy[] = -{ +static const struct smu_temperature_range smu13_thermal_policy[] = { {-273150 ,99000 ,99000 ,-273150 ,99000 ,99000 ,-273150 ,99000 ,99000 }, {120000 ,120000 ,120000 ,120000 ,120000 ,120000 ,120000 ,120000 ,120000 }, }; --2.17.1