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

drm/amd/pm: Clean up errors in smu73.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 '['
ERROR: "foo * bar" should be "foo *bar"

Signed-off-by: default avatarRan Sun <sunran001@208suo.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 6f569e69
Loading
Loading
Loading
Loading
+17 −28
Original line number Diff line number Diff line
@@ -37,8 +37,7 @@ enum Poly3rdOrderCoeff {
    POLY_3RD_ORDER_COUNT
};

struct SMU7_Poly3rdOrder_Data
{
struct SMU7_Poly3rdOrder_Data {
    int32_t a;
    int32_t b;
    int32_t c;
@@ -51,8 +50,7 @@ struct SMU7_Poly3rdOrder_Data

typedef struct SMU7_Poly3rdOrder_Data SMU7_Poly3rdOrder_Data;

struct Power_Calculator_Data
{
struct Power_Calculator_Data {
  uint16_t NoLoadVoltage;
  uint16_t LoadVoltage;
  uint16_t Resistance;
@@ -71,8 +69,7 @@ struct Power_Calculator_Data

typedef struct Power_Calculator_Data PowerCalculatorData_t;

struct Gc_Cac_Weight_Data
{
struct Gc_Cac_Weight_Data {
  uint8_t index;
  uint32_t value;
};
@@ -187,8 +184,7 @@ typedef struct {
#define SMU73_THERMAL_CLAMP_MODE_COUNT 8


struct SMU7_HystController_Data
{
struct SMU7_HystController_Data {
    uint16_t waterfall_up;
    uint16_t waterfall_down;
    uint16_t waterfall_limit;
@@ -199,8 +195,7 @@ struct SMU7_HystController_Data

typedef struct SMU7_HystController_Data SMU7_HystController_Data;

struct SMU73_PIDController
{
struct SMU73_PIDController {
    uint32_t Ki;
    int32_t LFWindupUpperLim;
    int32_t LFWindupLowerLim;
@@ -215,8 +210,7 @@ struct SMU73_PIDController

typedef struct SMU73_PIDController SMU73_PIDController;

struct SMU7_LocalDpmScoreboard
{
struct SMU7_LocalDpmScoreboard {
    uint32_t PercentageBusy;

    int32_t  PIDError;
@@ -315,8 +309,7 @@ typedef uint8_t (*VoltageChangeHandler_t)(uint16_t, uint8_t);

typedef uint32_t SMU_VoltageLevel;

struct SMU7_VoltageScoreboard
{
struct SMU7_VoltageScoreboard {
    SMU_VoltageLevel TargetVoltage;
    uint16_t MaxVid;
    uint8_t  HighestVidOffset;
@@ -366,8 +359,7 @@ typedef struct SMU7_VoltageScoreboard SMU7_VoltageScoreboard;
// -------------------------------------------------------------------------------------------------------------------------
#define SMU7_MAX_PCIE_LINK_SPEEDS 3 /* 0:Gen1 1:Gen2 2:Gen3 */

struct SMU7_PCIeLinkSpeedScoreboard
{
struct SMU7_PCIeLinkSpeedScoreboard {
    uint8_t     DpmEnable;
    uint8_t     DpmRunning;
    uint8_t     DpmForce;
@@ -396,8 +388,7 @@ typedef struct SMU7_PCIeLinkSpeedScoreboard SMU7_PCIeLinkSpeedScoreboard;
#define SMU7_SCALE_I  7
#define SMU7_SCALE_R 12

struct SMU7_PowerScoreboard
{
struct SMU7_PowerScoreboard {
    uint32_t GpuPower;

    uint32_t VddcPower;
@@ -436,8 +427,7 @@ typedef struct SMU7_PowerScoreboard SMU7_PowerScoreboard;
#define SMU7_VCE_SCLK_HANDSHAKE_DISABLE                  0x00020000

// All 'soft registers' should be uint32_t.
struct SMU73_SoftRegisters
{
struct SMU73_SoftRegisters {
    uint32_t        RefClockFrequency;
    uint32_t        PmTimerPeriod;
    uint32_t        FeatureEnables;
@@ -493,8 +483,7 @@ struct SMU73_SoftRegisters

typedef struct SMU73_SoftRegisters SMU73_SoftRegisters;

struct SMU73_Firmware_Header
{
struct SMU73_Firmware_Header {
    uint32_t Digest[5];
    uint32_t Version;
    uint32_t HeaderSize;