Skip to content

Commit 712c681

Browse files
Ran Sunalexdeucher
authored andcommitted
drm/amd/pm: Clean up errors in amdgpu_smu.h
Fix the following errors reported by checkpatch: ERROR: open brace '{' following enum go on the same line ERROR: open brace '{' following struct go on the same line Signed-off-by: Ran Sun <sunran001@208suo.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 39619d5 commit 712c681

File tree

1 file changed

+12
-24
lines changed

1 file changed

+12
-24
lines changed

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

Lines changed: 12 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -200,29 +200,25 @@ struct smu_power_state {
200200
struct smu_hw_power_state hardware;
201201
};
202202

203-
enum smu_power_src_type
204-
{
203+
enum smu_power_src_type {
205204
SMU_POWER_SOURCE_AC,
206205
SMU_POWER_SOURCE_DC,
207206
SMU_POWER_SOURCE_COUNT,
208207
};
209208

210-
enum smu_ppt_limit_type
211-
{
209+
enum smu_ppt_limit_type {
212210
SMU_DEFAULT_PPT_LIMIT = 0,
213211
SMU_FAST_PPT_LIMIT,
214212
};
215213

216-
enum smu_ppt_limit_level
217-
{
214+
enum smu_ppt_limit_level {
218215
SMU_PPT_LIMIT_MIN = -1,
219216
SMU_PPT_LIMIT_CURRENT,
220217
SMU_PPT_LIMIT_DEFAULT,
221218
SMU_PPT_LIMIT_MAX,
222219
};
223220

224-
enum smu_memory_pool_size
225-
{
221+
enum smu_memory_pool_size {
226222
SMU_MEMORY_POOL_SIZE_ZERO = 0,
227223
SMU_MEMORY_POOL_SIZE_256_MB = 0x10000000,
228224
SMU_MEMORY_POOL_SIZE_512_MB = 0x20000000,
@@ -282,8 +278,7 @@ struct smu_clock_info {
282278
uint32_t max_bus_bandwidth;
283279
};
284280

285-
struct smu_bios_boot_up_values
286-
{
281+
struct smu_bios_boot_up_values {
287282
uint32_t revision;
288283
uint32_t gfxclk;
289284
uint32_t uclk;
@@ -305,8 +300,7 @@ struct smu_bios_boot_up_values
305300
uint32_t firmware_caps;
306301
};
307302

308-
enum smu_table_id
309-
{
303+
enum smu_table_id {
310304
SMU_TABLE_PPTABLE = 0,
311305
SMU_TABLE_WATERMARKS,
312306
SMU_TABLE_CUSTOM_DPM,
@@ -326,8 +320,7 @@ enum smu_table_id
326320
SMU_TABLE_COUNT,
327321
};
328322

329-
struct smu_table_context
330-
{
323+
struct smu_table_context {
331324
void *power_play_table;
332325
uint32_t power_play_table_size;
333326
void *hardcode_pptable;
@@ -390,8 +383,7 @@ struct smu_power_context {
390383
};
391384

392385
#define SMU_FEATURE_MAX (64)
393-
struct smu_feature
394-
{
386+
struct smu_feature {
395387
uint32_t feature_num;
396388
DECLARE_BITMAP(supported, SMU_FEATURE_MAX);
397389
DECLARE_BITMAP(allowed, SMU_FEATURE_MAX);
@@ -416,21 +408,18 @@ struct mclock_latency_table {
416408
struct mclk_latency_entries entries[MAX_REGULAR_DPM_NUM];
417409
};
418410

419-
enum smu_reset_mode
420-
{
411+
enum smu_reset_mode {
421412
SMU_RESET_MODE_0,
422413
SMU_RESET_MODE_1,
423414
SMU_RESET_MODE_2,
424415
};
425416

426-
enum smu_baco_state
427-
{
417+
enum smu_baco_state {
428418
SMU_BACO_STATE_ENTER = 0,
429419
SMU_BACO_STATE_EXIT,
430420
};
431421

432-
struct smu_baco_context
433-
{
422+
struct smu_baco_context {
434423
uint32_t state;
435424
bool platform_support;
436425
bool maco_support;
@@ -478,8 +467,7 @@ struct stb_context {
478467

479468
#define WORKLOAD_POLICY_MAX 7
480469

481-
struct smu_context
482-
{
470+
struct smu_context {
483471
struct amdgpu_device *adev;
484472
struct amdgpu_irq_src irq_source;
485473

0 commit comments

Comments
 (0)