drm/amdgpu: Clean up errors in ppatomctrl.h
Subsystems (3)
PATCH 1/1 drm/amdgpu: Clean up errors in ppatomctrl.h
Fix the following errors reported by checkpatch:
ERROR: open brace '{' following struct go on the same line
Signed-off-by Ran Sun <[email protected]>
--- drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppatomctrl.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppatomctrl.h +2 -4
@@ -278,16 +278,14 @@ struct pp_atom_ctrl__avfs_parameters {uint8_t ucReserved; }; -struct _AtomCtrl_HiLoLeakageOffsetTable -{ +struct _AtomCtrl_HiLoLeakageOffsetTable {USHORT usHiLoLeakageThreshold;USHORT usEdcDidtLoDpm7TableOffset;USHORT usEdcDidtHiDpm7TableOffset; };typedef struct _AtomCtrl_HiLoLeakageOffsetTable AtomCtrl_HiLoLeakageOffsetTable ; -struct _AtomCtrl_EDCLeakgeTable -{ +struct _AtomCtrl_EDCLeakgeTable {ULONG DIDT_REG[24 ]; };typedef struct _AtomCtrl_EDCLeakgeTable AtomCtrl_EDCLeakgeTable ;
Signature · 1 line
2.17.1
Alex Deucher
AppliedApplied. Thanks!
Quoted 36 lines · Ran Sun
Fix the following errors reported by checkpatch:
ERROR: open brace '{' following struct go on the same line
Signed-off-by Ran Sun <[email protected]>--- drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppatomctrl.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppatomctrl.h +2
-5@@ -278,16 +278,14 @@ struct pp_atom_ctrl__avfs_parameters {uint8_t ucReserved; }; -struct _AtomCtrl_HiLoLeakageOffsetTable -{ +struct _AtomCtrl_HiLoLeakageOffsetTable {USHORT usHiLoLeakageThreshold;USHORT usEdcDidtLoDpm7TableOffset;USHORT usEdcDidtHiDpm7TableOffset; };typedef struct _AtomCtrl_HiLoLeakageOffsetTable AtomCtrl_HiLoLeakageOffsetTable ; -struct _AtomCtrl_EDCLeakgeTable -{ +struct _AtomCtrl_EDCLeakgeTable {ULONG DIDT_REG[24 ]; };typedef struct _AtomCtrl_EDCLeakgeTable AtomCtrl_EDCLeakgeTable ; --2.17.1