Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/radeon: Clean up errors in trinity_dpm.c

Fix the following errors reported by checkpatch:

ERROR: that open brace { should be on the previous line
ERROR: space prohibited before that ',' (ctx:WxW)
ERROR: need consistent spacing around '-' (ctx:WxV)

Signed-off-by: GuoHua Chen <chenguohua_716@163.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

GuoHua Chen and committed by
Alex Deucher
328f63b1 54a5d717

+4 -5
+4 -5
drivers/gpu/drm/radeon/kv_dpm.c
··· 64 64 extern void cik_update_cg(struct radeon_device *rdev, 65 65 u32 block, bool enable); 66 66 67 - static const struct kv_pt_config_reg didt_config_kv[] = 68 - { 67 + static const struct kv_pt_config_reg didt_config_kv[] = { 69 68 { 0x10, 0x000000ff, 0, 0x0, KV_CONFIGREG_DIDT_IND }, 70 69 { 0x10, 0x0000ff00, 8, 0x0, KV_CONFIGREG_DIDT_IND }, 71 70 { 0x10, 0x00ff0000, 16, 0x0, KV_CONFIGREG_DIDT_IND }, ··· 930 931 pi->graphics_level[i].ClkBypassCntl = 2; 931 932 else if (kv_get_clock_difference(table->entries[i].clk, 26600) < 200) 932 933 pi->graphics_level[i].ClkBypassCntl = 7; 933 - else if (kv_get_clock_difference(table->entries[i].clk , 20000) < 200) 934 + else if (kv_get_clock_difference(table->entries[i].clk, 20000) < 200) 934 935 pi->graphics_level[i].ClkBypassCntl = 6; 935 - else if (kv_get_clock_difference(table->entries[i].clk , 10000) < 200) 936 + else if (kv_get_clock_difference(table->entries[i].clk, 10000) < 200) 936 937 pi->graphics_level[i].ClkBypassCntl = 8; 937 938 else 938 939 pi->graphics_level[i].ClkBypassCntl = 0; ··· 1576 1577 if ((new_ps->levels[0].sclk - 1577 1578 table->entries[pi->highest_valid].sclk_frequency) > 1578 1579 (table->entries[pi->lowest_valid].sclk_frequency - 1579 - new_ps->levels[new_ps->num_levels -1].sclk)) 1580 + new_ps->levels[new_ps->num_levels - 1].sclk)) 1580 1581 pi->highest_valid = pi->lowest_valid; 1581 1582 else 1582 1583 pi->lowest_valid = pi->highest_valid;