drm/amd/pm: Clean up errors in vega12_pptable.h
Subsystems (3)
PATCH 1/1 drm/amd/pm: Clean up errors in vega12_pptable.h
Fix the following errors reported by checkpatch:
ERROR: open brace '{' following struct go on the same line
ERROR: space prohibited before open square bracket '['
Signed-off-by Ran Sun <[email protected]>
--- .../gpu/drm/amd/pm/powerplay/hwmgr/vega12_pptable.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-)
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega12_pptable.h +5 -6
@@ -72,8 +72,7 @@ enum ATOM_VEGA12_PPCLOCK_ID {typedef enum ATOM_VEGA12_PPCLOCK_ID ATOM_VEGA12_PPCLOCK_ID ; -typedef struct _ATOM_VEGA12_POWERPLAYTABLE -{ +typedef struct _ATOM_VEGA12_POWERPLAYTABLE { struct atom_common_table_header sHeader; UCHAR ucTableRevision; USHORT usTableSize;
@@ -92,11 +91,11 @@ typedef struct _ATOM_VEGA12_POWERPLAYTABLEUSHORT usODPowerSavePowerLimit;USHORT usSoftwareShutdownTemp; -ULONG PowerSavingClockMax [ATOM_VEGA12_PPCLOCK_COUNT ]; -ULONG PowerSavingClockMin [ATOM_VEGA12_PPCLOCK_COUNT ]; +ULONG PowerSavingClockMax[ATOM_VEGA12_PPCLOCK_COUNT ]; +ULONG PowerSavingClockMin[ATOM_VEGA12_PPCLOCK_COUNT ]; -ULONG ODSettingsMax [ATOM_VEGA12_ODSETTING_COUNT ]; -ULONG ODSettingsMin [ATOM_VEGA12_ODSETTING_COUNT ]; +ULONG ODSettingsMax[ATOM_VEGA12_ODSETTING_COUNT ]; +ULONG ODSettingsMin[ATOM_VEGA12_ODSETTING_COUNT ];USHORT usReserve[5 ];
Signature · 1 line
2.17.1
Alex Deucher
AppliedApplied. Thanks!
Quoted 44 lines · Ran Sun
Fix the following errors reported by checkpatch:
ERROR: open brace '{' following struct go on the same line
ERROR: space prohibited before open square bracket '['Signed-off-by Ran Sun <[email protected]>--- .../gpu/drm/amd/pm/powerplay/hwmgr/vega12_pptable.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-)drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega12_pptable.h +5
-7@@ -72,8 +72,7 @@ enum ATOM_VEGA12_PPCLOCK_ID {typedef enum ATOM_VEGA12_PPCLOCK_ID ATOM_VEGA12_PPCLOCK_ID ; -typedef struct _ATOM_VEGA12_POWERPLAYTABLE -{ +typedef struct _ATOM_VEGA12_POWERPLAYTABLE { struct atom_common_table_header sHeader; UCHAR ucTableRevision; USHORT usTableSize;@@ -92,11 +91,11 @@ typedef struct _ATOM_VEGA12_POWERPLAYTABLEUSHORT usODPowerSavePowerLimit;USHORT usSoftwareShutdownTemp; -ULONG PowerSavingClockMax [ATOM_VEGA12_PPCLOCK_COUNT ]; -ULONG PowerSavingClockMin [ATOM_VEGA12_PPCLOCK_COUNT ]; +ULONG PowerSavingClockMax[ATOM_VEGA12_PPCLOCK_COUNT ]; +ULONG PowerSavingClockMin[ATOM_VEGA12_PPCLOCK_COUNT ]; -ULONG ODSettingsMax [ATOM_VEGA12_ODSETTING_COUNT ]; -ULONG ODSettingsMin [ATOM_VEGA12_ODSETTING_COUNT ]; +ULONG ODSettingsMax[ATOM_VEGA12_ODSETTING_COUNT ]; +ULONG ODSettingsMin[ATOM_VEGA12_ODSETTING_COUNT ];USHORT usReserve[5 ]; --2.17.1