Skip to content

Commit 236dcf7

Browse files
Ran Sunalexdeucher
authored andcommitted
drm/amd/pm: Clean up errors in smu_v11_0_pptable.h
Fix the following errors reported by checkpatch: ERROR: trailing whitespace ERROR: open brace '{' following struct go on the same line ERROR: code indent should use tabs where possible Signed-off-by: Ran Sun <sunran001@208suo.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 4d6fc55 commit 236dcf7

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

drivers/gpu/drm/amd/pm/swsmu/inc/smu_v11_0_pptable.h

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,7 @@ enum SMU_11_0_ODSETTING_ID {
101101
};
102102
#define SMU_11_0_MAX_ODSETTING 32 //Maximum Number of ODSettings
103103

104-
struct smu_11_0_overdrive_table
105-
{
104+
struct smu_11_0_overdrive_table {
106105
uint8_t revision; //Revision = SMU_11_0_PP_OVERDRIVE_VERSION
107106
uint8_t reserve[3]; //Zero filled field reserved for future use
108107
uint32_t feature_count; //Total number of supported features
@@ -127,32 +126,30 @@ enum SMU_11_0_PPCLOCK_ID {
127126
};
128127
#define SMU_11_0_MAX_PPCLOCK 16 //Maximum Number of PP Clocks
129128

130-
struct smu_11_0_power_saving_clock_table
131-
{
129+
struct smu_11_0_power_saving_clock_table {
132130
uint8_t revision; //Revision = SMU_11_0_PP_POWERSAVINGCLOCK_VERSION
133131
uint8_t reserve[3]; //Zero filled field reserved for future use
134132
uint32_t count; //power_saving_clock_count = SMU_11_0_PPCLOCK_COUNT
135133
uint32_t max[SMU_11_0_MAX_PPCLOCK]; //PowerSavingClock Mode Clock Maximum array In MHz
136134
uint32_t min[SMU_11_0_MAX_PPCLOCK]; //PowerSavingClock Mode Clock Minimum array In MHz
137135
};
138136

139-
struct smu_11_0_powerplay_table
140-
{
137+
struct smu_11_0_powerplay_table {
141138
struct atom_common_table_header header;
142139
uint8_t table_revision;
143140
uint16_t table_size; //Driver portion table size. The offset to smc_pptable including header size
144141
uint32_t golden_pp_id;
145142
uint32_t golden_revision;
146143
uint16_t format_id;
147144
uint32_t platform_caps; //POWERPLAYABLE::ulPlatformCaps
148-
145+
149146
uint8_t thermal_controller_type; //one of SMU_11_0_PP_THERMALCONTROLLER
150147

151148
uint16_t small_power_limit1;
152149
uint16_t small_power_limit2;
153150
uint16_t boost_power_limit;
154-
uint16_t od_turbo_power_limit; //Power limit setting for Turbo mode in Performance UI Tuning.
155-
uint16_t od_power_save_power_limit; //Power limit setting for PowerSave/Optimal mode in Performance UI Tuning.
151+
uint16_t od_turbo_power_limit; //Power limit setting for Turbo mode in Performance UI Tuning.
152+
uint16_t od_power_save_power_limit; //Power limit setting for PowerSave/Optimal mode in Performance UI Tuning.
156153
uint16_t software_shutdown_temp;
157154

158155
uint16_t reserve[6]; //Zero filled field reserved for future use

0 commit comments

Comments
 (0)