mirror of
https://github.com/torvalds/linux.git
synced 2026-05-21 13:27:57 +02:00
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>
This commit is contained in:
parent
54a5d71723
commit
328f63b158
|
|
@ -64,8 +64,7 @@ extern void cik_exit_rlc_safe_mode(struct radeon_device *rdev);
|
|||
extern void cik_update_cg(struct radeon_device *rdev,
|
||||
u32 block, bool enable);
|
||||
|
||||
static const struct kv_pt_config_reg didt_config_kv[] =
|
||||
{
|
||||
static const struct kv_pt_config_reg didt_config_kv[] = {
|
||||
{ 0x10, 0x000000ff, 0, 0x0, KV_CONFIGREG_DIDT_IND },
|
||||
{ 0x10, 0x0000ff00, 8, 0x0, KV_CONFIGREG_DIDT_IND },
|
||||
{ 0x10, 0x00ff0000, 16, 0x0, KV_CONFIGREG_DIDT_IND },
|
||||
|
|
@ -931,9 +930,9 @@ static void kv_calculate_dfs_bypass_settings(struct radeon_device *rdev)
|
|||
pi->graphics_level[i].ClkBypassCntl = 2;
|
||||
else if (kv_get_clock_difference(table->entries[i].clk, 26600) < 200)
|
||||
pi->graphics_level[i].ClkBypassCntl = 7;
|
||||
else if (kv_get_clock_difference(table->entries[i].clk , 20000) < 200)
|
||||
else if (kv_get_clock_difference(table->entries[i].clk, 20000) < 200)
|
||||
pi->graphics_level[i].ClkBypassCntl = 6;
|
||||
else if (kv_get_clock_difference(table->entries[i].clk , 10000) < 200)
|
||||
else if (kv_get_clock_difference(table->entries[i].clk, 10000) < 200)
|
||||
pi->graphics_level[i].ClkBypassCntl = 8;
|
||||
else
|
||||
pi->graphics_level[i].ClkBypassCntl = 0;
|
||||
|
|
@ -1577,7 +1576,7 @@ static void kv_set_valid_clock_range(struct radeon_device *rdev,
|
|||
if ((new_ps->levels[0].sclk -
|
||||
table->entries[pi->highest_valid].sclk_frequency) >
|
||||
(table->entries[pi->lowest_valid].sclk_frequency -
|
||||
new_ps->levels[new_ps->num_levels -1].sclk))
|
||||
new_ps->levels[new_ps->num_levels - 1].sclk))
|
||||
pi->highest_valid = pi->lowest_valid;
|
||||
else
|
||||
pi->lowest_valid = pi->highest_valid;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user