Skip to content

Commit 2b77f19

Browse files
Ran Sunalexdeucher
authored andcommitted
drm/amdgpu: Clean up errors in dce_v10_0.c
Fix the following errors reported by checkpatch: ERROR: that open brace { should be on the previous line Signed-off-by: Ran Sun <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 7c29b40 commit 2b77f19

File tree

1 file changed

+10
-20
lines changed

1 file changed

+10
-20
lines changed

drivers/gpu/drm/amd/amdgpu/dce_v10_0.c

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@
5252
static void dce_v10_0_set_display_funcs(struct amdgpu_device *adev);
5353
static void dce_v10_0_set_irq_funcs(struct amdgpu_device *adev);
5454

55-
static const u32 crtc_offsets[] =
56-
{
55+
static const u32 crtc_offsets[] = {
5756
CRTC0_REGISTER_OFFSET,
5857
CRTC1_REGISTER_OFFSET,
5958
CRTC2_REGISTER_OFFSET,
@@ -63,8 +62,7 @@ static const u32 crtc_offsets[] =
6362
CRTC6_REGISTER_OFFSET
6463
};
6564

66-
static const u32 hpd_offsets[] =
67-
{
65+
static const u32 hpd_offsets[] = {
6866
HPD0_REGISTER_OFFSET,
6967
HPD1_REGISTER_OFFSET,
7068
HPD2_REGISTER_OFFSET,
@@ -121,30 +119,26 @@ static const struct {
121119
.hpd = DISP_INTERRUPT_STATUS_CONTINUE5__DC_HPD6_INTERRUPT_MASK
122120
} };
123121

124-
static const u32 golden_settings_tonga_a11[] =
125-
{
122+
static const u32 golden_settings_tonga_a11[] = {
126123
mmDCI_CLK_CNTL, 0x00000080, 0x00000000,
127124
mmFBC_DEBUG_COMP, 0x000000f0, 0x00000070,
128125
mmFBC_MISC, 0x1f311fff, 0x12300000,
129126
mmHDMI_CONTROL, 0x31000111, 0x00000011,
130127
};
131128

132-
static const u32 tonga_mgcg_cgcg_init[] =
133-
{
129+
static const u32 tonga_mgcg_cgcg_init[] = {
134130
mmXDMA_CLOCK_GATING_CNTL, 0xffffffff, 0x00000100,
135131
mmXDMA_MEM_POWER_CNTL, 0x00000101, 0x00000000,
136132
};
137133

138-
static const u32 golden_settings_fiji_a10[] =
139-
{
134+
static const u32 golden_settings_fiji_a10[] = {
140135
mmDCI_CLK_CNTL, 0x00000080, 0x00000000,
141136
mmFBC_DEBUG_COMP, 0x000000f0, 0x00000070,
142137
mmFBC_MISC, 0x1f311fff, 0x12300000,
143138
mmHDMI_CONTROL, 0x31000111, 0x00000011,
144139
};
145140

146-
static const u32 fiji_mgcg_cgcg_init[] =
147-
{
141+
static const u32 fiji_mgcg_cgcg_init[] = {
148142
mmXDMA_CLOCK_GATING_CNTL, 0xffffffff, 0x00000100,
149143
mmXDMA_MEM_POWER_CNTL, 0x00000101, 0x00000000,
150144
};
@@ -1425,8 +1419,7 @@ static void dce_v10_0_audio_enable(struct amdgpu_device *adev,
14251419
enable ? AZALIA_F0_CODEC_PIN_CONTROL_HOT_PLUG_CONTROL__AUDIO_ENABLED_MASK : 0);
14261420
}
14271421

1428-
static const u32 pin_offsets[] =
1429-
{
1422+
static const u32 pin_offsets[] = {
14301423
AUD0_REGISTER_OFFSET,
14311424
AUD1_REGISTER_OFFSET,
14321425
AUD2_REGISTER_OFFSET,
@@ -1811,8 +1804,7 @@ static void dce_v10_0_afmt_fini(struct amdgpu_device *adev)
18111804
}
18121805
}
18131806

1814-
static const u32 vga_control_regs[6] =
1815-
{
1807+
static const u32 vga_control_regs[6] = {
18161808
mmD1VGA_CONTROL,
18171809
mmD2VGA_CONTROL,
18181810
mmD3VGA_CONTROL,
@@ -3651,17 +3643,15 @@ static void dce_v10_0_set_irq_funcs(struct amdgpu_device *adev)
36513643
adev->hpd_irq.funcs = &dce_v10_0_hpd_irq_funcs;
36523644
}
36533645

3654-
const struct amdgpu_ip_block_version dce_v10_0_ip_block =
3655-
{
3646+
const struct amdgpu_ip_block_version dce_v10_0_ip_block = {
36563647
.type = AMD_IP_BLOCK_TYPE_DCE,
36573648
.major = 10,
36583649
.minor = 0,
36593650
.rev = 0,
36603651
.funcs = &dce_v10_0_ip_funcs,
36613652
};
36623653

3663-
const struct amdgpu_ip_block_version dce_v10_1_ip_block =
3664-
{
3654+
const struct amdgpu_ip_block_version dce_v10_1_ip_block = {
36653655
.type = AMD_IP_BLOCK_TYPE_DCE,
36663656
.major = 10,
36673657
.minor = 1,

0 commit comments

Comments
 (0)