Commit 08110c26 authored by Ran Sun's avatar Ran Sun Committed by Alex Deucher

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: default avatarRan Sun <sunran001@208suo.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 042a70e4
...@@ -80,8 +80,7 @@ enum psp_bootloader_cmd { ...@@ -80,8 +80,7 @@ enum psp_bootloader_cmd {
PSP_BL__LOAD_TOS_SPL_TABLE = 0x10000000, PSP_BL__LOAD_TOS_SPL_TABLE = 0x10000000,
}; };
enum psp_ring_type enum psp_ring_type {
{
PSP_RING_TYPE__INVALID = 0, PSP_RING_TYPE__INVALID = 0,
/* /*
* These values map to the way the PSP kernel identifies the * These values map to the way the PSP kernel identifies the
...@@ -91,8 +90,7 @@ enum psp_ring_type ...@@ -91,8 +90,7 @@ enum psp_ring_type
PSP_RING_TYPE__KM = 2 /* Kernel mode ring (formerly called GPCOM) */ PSP_RING_TYPE__KM = 2 /* Kernel mode ring (formerly called GPCOM) */
}; };
struct psp_ring struct psp_ring {
{
enum psp_ring_type ring_type; enum psp_ring_type ring_type;
struct psp_gfx_rb_frame *ring_mem; struct psp_gfx_rb_frame *ring_mem;
uint64_t ring_mem_mc_addr; uint64_t ring_mem_mc_addr;
...@@ -109,8 +107,7 @@ enum psp_reg_prog_id { ...@@ -109,8 +107,7 @@ enum psp_reg_prog_id {
PSP_REG_LAST PSP_REG_LAST
}; };
struct psp_funcs struct psp_funcs {
{
int (*init_microcode)(struct psp_context *psp); int (*init_microcode)(struct psp_context *psp);
int (*bootloader_load_kdb)(struct psp_context *psp); int (*bootloader_load_kdb)(struct psp_context *psp);
int (*bootloader_load_spl)(struct psp_context *psp); int (*bootloader_load_spl)(struct psp_context *psp);
...@@ -309,8 +306,7 @@ struct psp_runtime_scpm_entry { ...@@ -309,8 +306,7 @@ struct psp_runtime_scpm_entry {
enum psp_runtime_scpm_authentication scpm_status; enum psp_runtime_scpm_authentication scpm_status;
}; };
struct psp_context struct psp_context {
{
struct amdgpu_device *adev; struct amdgpu_device *adev;
struct psp_ring km_ring; struct psp_ring km_ring;
struct psp_gfx_cmd_resp *cmd; struct psp_gfx_cmd_resp *cmd;
......
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