Skip to content

Commit 08110c2

Browse files
Ran Sunalexdeucher
authored andcommitted
drm/amdgpu: Clean up errors in amdgpu_psp.h
Fix the following errors reported by checkpatch: ERROR: open brace '{' following struct go on the same line ERROR: open brace '{' following enum go on the same line Signed-off-by: Ran Sun <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 042a70e commit 08110c2

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,7 @@ enum psp_bootloader_cmd {
8080
PSP_BL__LOAD_TOS_SPL_TABLE = 0x10000000,
8181
};
8282

83-
enum psp_ring_type
84-
{
83+
enum psp_ring_type {
8584
PSP_RING_TYPE__INVALID = 0,
8685
/*
8786
* These values map to the way the PSP kernel identifies the
@@ -91,8 +90,7 @@ enum psp_ring_type
9190
PSP_RING_TYPE__KM = 2 /* Kernel mode ring (formerly called GPCOM) */
9291
};
9392

94-
struct psp_ring
95-
{
93+
struct psp_ring {
9694
enum psp_ring_type ring_type;
9795
struct psp_gfx_rb_frame *ring_mem;
9896
uint64_t ring_mem_mc_addr;
@@ -109,8 +107,7 @@ enum psp_reg_prog_id {
109107
PSP_REG_LAST
110108
};
111109

112-
struct psp_funcs
113-
{
110+
struct psp_funcs {
114111
int (*init_microcode)(struct psp_context *psp);
115112
int (*bootloader_load_kdb)(struct psp_context *psp);
116113
int (*bootloader_load_spl)(struct psp_context *psp);
@@ -309,8 +306,7 @@ struct psp_runtime_scpm_entry {
309306
enum psp_runtime_scpm_authentication scpm_status;
310307
};
311308

312-
struct psp_context
313-
{
309+
struct psp_context {
314310
struct amdgpu_device *adev;
315311
struct psp_ring km_ring;
316312
struct psp_gfx_cmd_resp *cmd;

0 commit comments

Comments
 (0)