Commit 18ef7544 authored by Ran Sun's avatar Ran Sun Committed by Alex Deucher

drm/amdgpu: Clean up errors in dce_v8_0.c

Fix the following errors reported by checkpatch:

ERROR: that open brace { should be on the previous line
ERROR: code indent should use tabs where possible
ERROR: space required before the open brace '{'
Signed-off-by: default avatarRan Sun <sunran001@208suo.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 665ba81b
...@@ -53,8 +53,7 @@ ...@@ -53,8 +53,7 @@
static void dce_v8_0_set_display_funcs(struct amdgpu_device *adev); static void dce_v8_0_set_display_funcs(struct amdgpu_device *adev);
static void dce_v8_0_set_irq_funcs(struct amdgpu_device *adev); static void dce_v8_0_set_irq_funcs(struct amdgpu_device *adev);
static const u32 crtc_offsets[6] = static const u32 crtc_offsets[6] = {
{
CRTC0_REGISTER_OFFSET, CRTC0_REGISTER_OFFSET,
CRTC1_REGISTER_OFFSET, CRTC1_REGISTER_OFFSET,
CRTC2_REGISTER_OFFSET, CRTC2_REGISTER_OFFSET,
...@@ -63,8 +62,7 @@ static const u32 crtc_offsets[6] = ...@@ -63,8 +62,7 @@ static const u32 crtc_offsets[6] =
CRTC5_REGISTER_OFFSET CRTC5_REGISTER_OFFSET
}; };
static const u32 hpd_offsets[] = static const u32 hpd_offsets[] = {
{
HPD0_REGISTER_OFFSET, HPD0_REGISTER_OFFSET,
HPD1_REGISTER_OFFSET, HPD1_REGISTER_OFFSET,
HPD2_REGISTER_OFFSET, HPD2_REGISTER_OFFSET,
...@@ -1379,8 +1377,7 @@ static void dce_v8_0_audio_enable(struct amdgpu_device *adev, ...@@ -1379,8 +1377,7 @@ static void dce_v8_0_audio_enable(struct amdgpu_device *adev,
enable ? AZALIA_F0_CODEC_PIN_CONTROL_HOT_PLUG_CONTROL__AUDIO_ENABLED_MASK : 0); enable ? AZALIA_F0_CODEC_PIN_CONTROL_HOT_PLUG_CONTROL__AUDIO_ENABLED_MASK : 0);
} }
static const u32 pin_offsets[7] = static const u32 pin_offsets[7] = {
{
(0x1780 - 0x1780), (0x1780 - 0x1780),
(0x1786 - 0x1780), (0x1786 - 0x1780),
(0x178c - 0x1780), (0x178c - 0x1780),
...@@ -1740,8 +1737,7 @@ static void dce_v8_0_afmt_fini(struct amdgpu_device *adev) ...@@ -1740,8 +1737,7 @@ static void dce_v8_0_afmt_fini(struct amdgpu_device *adev)
} }
} }
static const u32 vga_control_regs[6] = static const u32 vga_control_regs[6] = {
{
mmD1VGA_CONTROL, mmD1VGA_CONTROL,
mmD2VGA_CONTROL, mmD2VGA_CONTROL,
mmD3VGA_CONTROL, mmD3VGA_CONTROL,
...@@ -3151,7 +3147,7 @@ static int dce_v8_0_pageflip_irq(struct amdgpu_device *adev, ...@@ -3151,7 +3147,7 @@ static int dce_v8_0_pageflip_irq(struct amdgpu_device *adev,
spin_lock_irqsave(&adev_to_drm(adev)->event_lock, flags); spin_lock_irqsave(&adev_to_drm(adev)->event_lock, flags);
works = amdgpu_crtc->pflip_works; works = amdgpu_crtc->pflip_works;
if (amdgpu_crtc->pflip_status != AMDGPU_FLIP_SUBMITTED){ if (amdgpu_crtc->pflip_status != AMDGPU_FLIP_SUBMITTED) {
DRM_DEBUG_DRIVER("amdgpu_crtc->pflip_status = %d != " DRM_DEBUG_DRIVER("amdgpu_crtc->pflip_status = %d != "
"AMDGPU_FLIP_SUBMITTED(%d)\n", "AMDGPU_FLIP_SUBMITTED(%d)\n",
amdgpu_crtc->pflip_status, amdgpu_crtc->pflip_status,
...@@ -3544,8 +3540,7 @@ static void dce_v8_0_set_irq_funcs(struct amdgpu_device *adev) ...@@ -3544,8 +3540,7 @@ static void dce_v8_0_set_irq_funcs(struct amdgpu_device *adev)
adev->hpd_irq.funcs = &dce_v8_0_hpd_irq_funcs; adev->hpd_irq.funcs = &dce_v8_0_hpd_irq_funcs;
} }
const struct amdgpu_ip_block_version dce_v8_0_ip_block = const struct amdgpu_ip_block_version dce_v8_0_ip_block = {
{
.type = AMD_IP_BLOCK_TYPE_DCE, .type = AMD_IP_BLOCK_TYPE_DCE,
.major = 8, .major = 8,
.minor = 0, .minor = 0,
...@@ -3553,8 +3548,7 @@ const struct amdgpu_ip_block_version dce_v8_0_ip_block = ...@@ -3553,8 +3548,7 @@ const struct amdgpu_ip_block_version dce_v8_0_ip_block =
.funcs = &dce_v8_0_ip_funcs, .funcs = &dce_v8_0_ip_funcs,
}; };
const struct amdgpu_ip_block_version dce_v8_1_ip_block = const struct amdgpu_ip_block_version dce_v8_1_ip_block = {
{
.type = AMD_IP_BLOCK_TYPE_DCE, .type = AMD_IP_BLOCK_TYPE_DCE,
.major = 8, .major = 8,
.minor = 1, .minor = 1,
...@@ -3562,8 +3556,7 @@ const struct amdgpu_ip_block_version dce_v8_1_ip_block = ...@@ -3562,8 +3556,7 @@ const struct amdgpu_ip_block_version dce_v8_1_ip_block =
.funcs = &dce_v8_0_ip_funcs, .funcs = &dce_v8_0_ip_funcs,
}; };
const struct amdgpu_ip_block_version dce_v8_2_ip_block = const struct amdgpu_ip_block_version dce_v8_2_ip_block = {
{
.type = AMD_IP_BLOCK_TYPE_DCE, .type = AMD_IP_BLOCK_TYPE_DCE,
.major = 8, .major = 8,
.minor = 2, .minor = 2,
...@@ -3571,8 +3564,7 @@ const struct amdgpu_ip_block_version dce_v8_2_ip_block = ...@@ -3571,8 +3564,7 @@ const struct amdgpu_ip_block_version dce_v8_2_ip_block =
.funcs = &dce_v8_0_ip_funcs, .funcs = &dce_v8_0_ip_funcs,
}; };
const struct amdgpu_ip_block_version dce_v8_3_ip_block = const struct amdgpu_ip_block_version dce_v8_3_ip_block = {
{
.type = AMD_IP_BLOCK_TYPE_DCE, .type = AMD_IP_BLOCK_TYPE_DCE,
.major = 8, .major = 8,
.minor = 3, .minor = 3,
...@@ -3580,8 +3572,7 @@ const struct amdgpu_ip_block_version dce_v8_3_ip_block = ...@@ -3580,8 +3572,7 @@ const struct amdgpu_ip_block_version dce_v8_3_ip_block =
.funcs = &dce_v8_0_ip_funcs, .funcs = &dce_v8_0_ip_funcs,
}; };
const struct amdgpu_ip_block_version dce_v8_5_ip_block = const struct amdgpu_ip_block_version dce_v8_5_ip_block = {
{
.type = AMD_IP_BLOCK_TYPE_DCE, .type = AMD_IP_BLOCK_TYPE_DCE,
.major = 8, .major = 8,
.minor = 5, .minor = 5,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment