Skip to content

Commit 06d82d8

Browse files
Ran Sunalexdeucher
authored andcommitted
drm/amdgpu: Clean up errors in soc21.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 18ef754 commit 06d82d8

File tree

1 file changed

+10
-20
lines changed

1 file changed

+10
-20
lines changed

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

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -48,56 +48,48 @@
4848
static const struct amd_ip_funcs soc21_common_ip_funcs;
4949

5050
/* SOC21 */
51-
static const struct amdgpu_video_codec_info vcn_4_0_0_video_codecs_encode_array_vcn0[] =
52-
{
51+
static const struct amdgpu_video_codec_info vcn_4_0_0_video_codecs_encode_array_vcn0[] = {
5352
{codec_info_build(AMDGPU_INFO_VIDEO_CAPS_CODEC_IDX_MPEG4_AVC, 4096, 2304, 0)},
5453
{codec_info_build(AMDGPU_INFO_VIDEO_CAPS_CODEC_IDX_HEVC, 4096, 2304, 0)},
5554
{codec_info_build(AMDGPU_INFO_VIDEO_CAPS_CODEC_IDX_AV1, 8192, 4352, 0)},
5655
};
5756

58-
static const struct amdgpu_video_codec_info vcn_4_0_0_video_codecs_encode_array_vcn1[] =
59-
{
57+
static const struct amdgpu_video_codec_info vcn_4_0_0_video_codecs_encode_array_vcn1[] = {
6058
{codec_info_build(AMDGPU_INFO_VIDEO_CAPS_CODEC_IDX_MPEG4_AVC, 4096, 2304, 0)},
6159
{codec_info_build(AMDGPU_INFO_VIDEO_CAPS_CODEC_IDX_HEVC, 4096, 2304, 0)},
6260
};
6361

64-
static const struct amdgpu_video_codecs vcn_4_0_0_video_codecs_encode_vcn0 =
65-
{
62+
static const struct amdgpu_video_codecs vcn_4_0_0_video_codecs_encode_vcn0 = {
6663
.codec_count = ARRAY_SIZE(vcn_4_0_0_video_codecs_encode_array_vcn0),
6764
.codec_array = vcn_4_0_0_video_codecs_encode_array_vcn0,
6865
};
6966

70-
static const struct amdgpu_video_codecs vcn_4_0_0_video_codecs_encode_vcn1 =
71-
{
67+
static const struct amdgpu_video_codecs vcn_4_0_0_video_codecs_encode_vcn1 = {
7268
.codec_count = ARRAY_SIZE(vcn_4_0_0_video_codecs_encode_array_vcn1),
7369
.codec_array = vcn_4_0_0_video_codecs_encode_array_vcn1,
7470
};
7571

76-
static const struct amdgpu_video_codec_info vcn_4_0_0_video_codecs_decode_array_vcn0[] =
77-
{
72+
static const struct amdgpu_video_codec_info vcn_4_0_0_video_codecs_decode_array_vcn0[] = {
7873
{codec_info_build(AMDGPU_INFO_VIDEO_CAPS_CODEC_IDX_MPEG4_AVC, 4096, 4096, 52)},
7974
{codec_info_build(AMDGPU_INFO_VIDEO_CAPS_CODEC_IDX_HEVC, 8192, 4352, 186)},
8075
{codec_info_build(AMDGPU_INFO_VIDEO_CAPS_CODEC_IDX_JPEG, 4096, 4096, 0)},
8176
{codec_info_build(AMDGPU_INFO_VIDEO_CAPS_CODEC_IDX_VP9, 8192, 4352, 0)},
8277
{codec_info_build(AMDGPU_INFO_VIDEO_CAPS_CODEC_IDX_AV1, 8192, 4352, 0)},
8378
};
8479

85-
static const struct amdgpu_video_codec_info vcn_4_0_0_video_codecs_decode_array_vcn1[] =
86-
{
80+
static const struct amdgpu_video_codec_info vcn_4_0_0_video_codecs_decode_array_vcn1[] = {
8781
{codec_info_build(AMDGPU_INFO_VIDEO_CAPS_CODEC_IDX_MPEG4_AVC, 4096, 4096, 52)},
8882
{codec_info_build(AMDGPU_INFO_VIDEO_CAPS_CODEC_IDX_HEVC, 8192, 4352, 186)},
8983
{codec_info_build(AMDGPU_INFO_VIDEO_CAPS_CODEC_IDX_JPEG, 4096, 4096, 0)},
9084
{codec_info_build(AMDGPU_INFO_VIDEO_CAPS_CODEC_IDX_VP9, 8192, 4352, 0)},
9185
};
9286

93-
static const struct amdgpu_video_codecs vcn_4_0_0_video_codecs_decode_vcn0 =
94-
{
87+
static const struct amdgpu_video_codecs vcn_4_0_0_video_codecs_decode_vcn0 = {
9588
.codec_count = ARRAY_SIZE(vcn_4_0_0_video_codecs_decode_array_vcn0),
9689
.codec_array = vcn_4_0_0_video_codecs_decode_array_vcn0,
9790
};
9891

99-
static const struct amdgpu_video_codecs vcn_4_0_0_video_codecs_decode_vcn1 =
100-
{
92+
static const struct amdgpu_video_codecs vcn_4_0_0_video_codecs_decode_vcn1 = {
10193
.codec_count = ARRAY_SIZE(vcn_4_0_0_video_codecs_decode_array_vcn1),
10294
.codec_array = vcn_4_0_0_video_codecs_decode_array_vcn1,
10395
};
@@ -445,8 +437,7 @@ static void soc21_program_aspm(struct amdgpu_device *adev)
445437
adev->nbio.funcs->program_aspm(adev);
446438
}
447439

448-
const struct amdgpu_ip_block_version soc21_common_ip_block =
449-
{
440+
const struct amdgpu_ip_block_version soc21_common_ip_block = {
450441
.type = AMD_IP_BLOCK_TYPE_COMMON,
451442
.major = 1,
452443
.minor = 0,
@@ -537,8 +528,7 @@ static int soc21_update_umd_stable_pstate(struct amdgpu_device *adev,
537528
return 0;
538529
}
539530

540-
static const struct amdgpu_asic_funcs soc21_asic_funcs =
541-
{
531+
static const struct amdgpu_asic_funcs soc21_asic_funcs = {
542532
.read_disabled_bios = &soc21_read_disabled_bios,
543533
.read_bios_from_rom = &amdgpu_soc15_read_bios_from_rom,
544534
.read_register = &soc21_read_register,

0 commit comments

Comments
 (0)