Commit b0297530 authored by Ran Sun's avatar Ran Sun Committed by Alex Deucher
Browse files

drm/amd/pm: Clean up errors in smu73_discrete.h



Fix the following errors reported by checkpatch:

ERROR: open brace '{' following struct go on the same line
ERROR: trailing whitespace
ERROR: space prohibited before open square bracket '['

Signed-off-by: default avatarRan Sun <sunran001@208suo.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 20c74354
Loading
Loading
Loading
Loading
+29 −44
Original line number Diff line number Diff line
@@ -27,8 +27,7 @@

#pragma pack(push, 1)

struct SMIO_Pattern
{
struct SMIO_Pattern {
  uint16_t Voltage;
  uint8_t  Smio;
  uint8_t  padding;
@@ -36,8 +35,7 @@ struct SMIO_Pattern

typedef struct SMIO_Pattern SMIO_Pattern;

struct SMIO_Table
{
struct SMIO_Table {
  SMIO_Pattern Pattern[SMU_MAX_SMIO_LEVELS];
};

@@ -100,8 +98,7 @@ struct SMU73_Discrete_Ulv {

typedef struct SMU73_Discrete_Ulv SMU73_Discrete_Ulv;

struct SMU73_Discrete_MemoryLevel
{
struct SMU73_Discrete_MemoryLevel {
    uint32_t MinVoltage;
    uint32_t    MinMvdd;

@@ -124,8 +121,7 @@ struct SMU73_Discrete_MemoryLevel

typedef struct SMU73_Discrete_MemoryLevel SMU73_Discrete_MemoryLevel;

struct SMU73_Discrete_LinkLevel
{
struct SMU73_Discrete_LinkLevel {
    uint8_t     PcieGenSpeed;           ///< 0:PciE-gen1 1:PciE-gen2 2:PciE-gen3
    uint8_t     PcieLaneCount;          ///< 1=x1, 2=x2, 3=x4, 4=x8, 5=x12, 6=x16
    uint8_t     EnabledForActivity;
@@ -139,8 +135,7 @@ typedef struct SMU73_Discrete_LinkLevel SMU73_Discrete_LinkLevel;


// MC ARB DRAM Timing registers.
struct SMU73_Discrete_MCArbDramTimingTableEntry
{
struct SMU73_Discrete_MCArbDramTimingTableEntry {
    uint32_t McArbDramTiming;
    uint32_t McArbDramTiming2;
    uint8_t  McArbBurstTime;
@@ -151,16 +146,14 @@ struct SMU73_Discrete_MCArbDramTimingTableEntry

typedef struct SMU73_Discrete_MCArbDramTimingTableEntry SMU73_Discrete_MCArbDramTimingTableEntry;

struct SMU73_Discrete_MCArbDramTimingTable
{
struct SMU73_Discrete_MCArbDramTimingTable {
    SMU73_Discrete_MCArbDramTimingTableEntry entries[SMU__NUM_SCLK_DPM_STATE][SMU__NUM_MCLK_DPM_LEVELS];
};

typedef struct SMU73_Discrete_MCArbDramTimingTable SMU73_Discrete_MCArbDramTimingTable;

// UVD VCLK/DCLK state (level) definition.
struct SMU73_Discrete_UvdLevel
{
struct SMU73_Discrete_UvdLevel {
    uint32_t VclkFrequency;
    uint32_t DclkFrequency;
    uint32_t MinVoltage;
@@ -172,8 +165,7 @@ struct SMU73_Discrete_UvdLevel
typedef struct SMU73_Discrete_UvdLevel SMU73_Discrete_UvdLevel;

// Clocks for other external blocks (VCE, ACP, SAMU).
struct SMU73_Discrete_ExtClkLevel
{
struct SMU73_Discrete_ExtClkLevel {
    uint32_t Frequency;
    uint32_t MinVoltage;
    uint8_t  Divider;
@@ -182,8 +174,7 @@ struct SMU73_Discrete_ExtClkLevel

typedef struct SMU73_Discrete_ExtClkLevel SMU73_Discrete_ExtClkLevel;

struct SMU73_Discrete_StateInfo
{
struct SMU73_Discrete_StateInfo {
    uint32_t SclkFrequency;
    uint32_t MclkFrequency;
    uint32_t VclkFrequency;
@@ -206,8 +197,7 @@ struct SMU73_Discrete_StateInfo

typedef struct SMU73_Discrete_StateInfo SMU73_Discrete_StateInfo;

struct SMU73_Discrete_DpmTable
{
struct SMU73_Discrete_DpmTable {
    // Multi-DPM controller settings
    SMU73_PIDController                  GraphicsPIDController;
    SMU73_PIDController                  MemoryPIDController;
@@ -368,8 +358,7 @@ typedef struct SMU73_Discrete_DpmTable SMU73_Discrete_DpmTable;


// --------------------------------------------------- Fan Table -----------------------------------------------------------
struct SMU73_Discrete_FanTable
{
struct SMU73_Discrete_FanTable {
    uint16_t FdoMode;
    int16_t  TempMin;
    int16_t  TempMed;
@@ -397,8 +386,7 @@ typedef struct SMU73_Discrete_FanTable SMU73_Discrete_FanTable;



struct SMU7_MclkDpmScoreboard
{
struct SMU7_MclkDpmScoreboard {

    uint32_t PercentageBusy;

@@ -469,8 +457,7 @@ struct SMU7_MclkDpmScoreboard

typedef struct SMU7_MclkDpmScoreboard SMU7_MclkDpmScoreboard;

struct SMU7_UlvScoreboard
{
struct SMU7_UlvScoreboard {
    uint8_t     EnterUlv;
    uint8_t     ExitUlv;
    uint8_t     UlvActive;
@@ -485,8 +472,7 @@ struct SMU7_UlvScoreboard

typedef struct SMU7_UlvScoreboard SMU7_UlvScoreboard;

struct VddgfxSavedRegisters
{
struct VddgfxSavedRegisters {
  uint32_t GPU_DBG[3];
  uint32_t MEC_BaseAddress_Hi;
  uint32_t MEC_BaseAddress_Lo;
@@ -497,8 +483,7 @@ struct VddgfxSavedRegisters

typedef struct VddgfxSavedRegisters VddgfxSavedRegisters;

struct SMU7_VddGfxScoreboard
{
struct SMU7_VddGfxScoreboard {
    uint8_t     VddGfxEnable;
    uint8_t     VddGfxActive;
    uint8_t     VPUResetOccured;