OSDN Git Service

drm/amdgpu: Clean up errors in smu_helper.c
authorRan Sun <sunran001@208suo.com>
Tue, 1 Aug 2023 07:59:51 +0000 (07:59 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 9 Aug 2023 13:40:44 +0000 (09:40 -0400)
Fix the following errors reported by checkpatch:

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

Signed-off-by: Ran Sun <sunran001@208suo.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu_helper.c

index d0b1ab6..79a566f 100644 (file)
@@ -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;