aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRex Zhu <Rex.Zhu@amd.com>2017-08-08 00:20:30 -0400
committerAlex Deucher <alexander.deucher@amd.com>2017-08-15 14:46:18 -0400
commit1266b7f7b3eb7c9cf62b5f0bcb1d14fca13b6738 (patch)
treefe4944d9ec638664e728a70d032b11b565c8b06e
parent5bbc5c6412a813b5185777afe6616e931e723314 (diff)
drm/amd/powerplay: fix coding style in hwmgr.c
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c
index 9b63fa362255..9547f265a8bb 100644
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c
@@ -582,26 +582,26 @@ int phm_get_sclk_for_voltage_evv(struct pp_hwmgr *hwmgr,
582 phm_ppt_v1_voltage_lookup_table *lookup_table, 582 phm_ppt_v1_voltage_lookup_table *lookup_table,
583 uint16_t virtual_voltage_id, int32_t *sclk) 583 uint16_t virtual_voltage_id, int32_t *sclk)
584{ 584{
585 uint8_t entryId; 585 uint8_t entry_id;
586 uint8_t voltageId; 586 uint8_t voltage_id;
587 struct phm_ppt_v1_information *table_info = 587 struct phm_ppt_v1_information *table_info =
588 (struct phm_ppt_v1_information *)(hwmgr->pptable); 588 (struct phm_ppt_v1_information *)(hwmgr->pptable);
589 589
590 PP_ASSERT_WITH_CODE(lookup_table->count != 0, "Lookup table is empty", return -EINVAL); 590 PP_ASSERT_WITH_CODE(lookup_table->count != 0, "Lookup table is empty", return -EINVAL);
591 591
592 /* search for leakage voltage ID 0xff01 ~ 0xff08 and sckl */ 592 /* search for leakage voltage ID 0xff01 ~ 0xff08 and sckl */
593 for (entryId = 0; entryId < table_info->vdd_dep_on_sclk->count; entryId++) { 593 for (entry_id = 0; entry_id < table_info->vdd_dep_on_sclk->count; entry_id++) {
594 voltageId = table_info->vdd_dep_on_sclk->entries[entryId].vddInd; 594 voltage_id = table_info->vdd_dep_on_sclk->entries[entry_id].vddInd;
595 if (lookup_table->entries[voltageId].us_vdd == virtual_voltage_id) 595 if (lookup_table->entries[voltage_id].us_vdd == virtual_voltage_id)
596 break; 596 break;
597 } 597 }
598 598
599 if (entryId >= table_info->vdd_dep_on_sclk->count) { 599 if (entry_id >= table_info->vdd_dep_on_sclk->count) {
600 pr_debug("Can't find requested voltage id in vdd_dep_on_sclk table\n"); 600 pr_debug("Can't find requested voltage id in vdd_dep_on_sclk table\n");
601 return -EINVAL; 601 return -EINVAL;
602 } 602 }
603 603
604 *sclk = table_info->vdd_dep_on_sclk->entries[entryId].clk; 604 *sclk = table_info->vdd_dep_on_sclk->entries[entry_id].clk;
605 605
606 return 0; 606 return 0;
607} 607}