Skip to contentSkip to conversation

drm/amdgpu: Clean up errors in smu_helper.c

PATCH Applied Ran Sun 2 participants 2 messages Aug 1, 2023 – Aug 7, 2023

Subsystems (3)
lore
Share & tools
lore

Ran Sun

author
#0 lore raw

PATCH 1/1 drm/amdgpu: Clean up errors in smu_helper.c

Fix the following errors reported by checkpatch:

ERROR: spaces required around that '=' (ctx:VxV)
ERROR: spaces required around that '<' (ctx:VxV)

---
 drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu_helper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu_helper.c +1 -1
index d0b1ab6c4523..79a566f3564a 100644
@@ -696,7 +696,7 @@ int smu_get_voltage_dependency_table_ppt_v1(
 				return -EINVAL);
 
 	dep_table->count = allowed_dep_table->count;
-	for (i=0; i<dep_table->count; i++) {
+	for (i = 0; i < dep_table->count; i++) {
 		dep_table->entries[i].clk = allowed_dep_table->entries[i].clk;
 		dep_table->entries[i].vddInd = allowed_dep_table->entries[i].vddInd;
 		dep_table->entries[i].vdd_offset = allowed_dep_table->entries[i].vdd_offset;
Signature · 1 line
2.17.1
Applied
#1 lore raw

Applied. Thanks!

Quoted 27 lines · Ran Sun

Fix the following errors reported by checkpatch:

ERROR: spaces required around that '=' (ctx:VxV)
ERROR: spaces required around that '<' (ctx:VxV)

---
 drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu_helper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu_helper.c +1 -2
index d0b1ab6c4523..79a566f3564a 100644
@@ -696,7 +696,7 @@ int smu_get_voltage_dependency_table_ppt_v1(
                                return -EINVAL);
 
        dep_table->count = allowed_dep_table->count;
-       for (i=0; i<dep_table->count; i++) {
+       for (i = 0; i < dep_table->count; i++) {
                dep_table->entries[i].clk = allowed_dep_table->entries[i].clk;
                dep_table->entries[i].vddInd = allowed_dep_table->entries[i].vddInd;
                dep_table->entries[i].vdd_offset = allowed_dep_table->entries[i].vdd_offset;
--

2.17.1