Commit 6f569e69 authored by Ran Sun's avatar Ran Sun Committed by Alex Deucher

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

Fix the following errors reported by checkpatch:

ERROR: open brace '{' following struct go on the same line
ERROR: Use C99 flexible arrays
Signed-off-by: default avatarRan Sun <sunran001@208suo.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 6f3d7a6a
...@@ -190,8 +190,7 @@ struct phm_vce_clock_voltage_dependency_table { ...@@ -190,8 +190,7 @@ struct phm_vce_clock_voltage_dependency_table {
}; };
enum SMU_ASIC_RESET_MODE enum SMU_ASIC_RESET_MODE {
{
SMU_ASIC_RESET_MODE_0, SMU_ASIC_RESET_MODE_0,
SMU_ASIC_RESET_MODE_1, SMU_ASIC_RESET_MODE_1,
SMU_ASIC_RESET_MODE_2, SMU_ASIC_RESET_MODE_2,
...@@ -516,7 +515,7 @@ struct phm_vq_budgeting_record { ...@@ -516,7 +515,7 @@ struct phm_vq_budgeting_record {
struct phm_vq_budgeting_table { struct phm_vq_budgeting_table {
uint8_t numEntries; uint8_t numEntries;
struct phm_vq_budgeting_record entries[1]; struct phm_vq_budgeting_record entries[0];
}; };
struct phm_clock_and_voltage_limits { struct phm_clock_and_voltage_limits {
...@@ -607,8 +606,7 @@ struct phm_ppt_v2_information { ...@@ -607,8 +606,7 @@ struct phm_ppt_v2_information {
uint8_t uc_dcef_dpm_voltage_mode; uint8_t uc_dcef_dpm_voltage_mode;
}; };
struct phm_ppt_v3_information struct phm_ppt_v3_information {
{
uint8_t uc_thermal_controller_type; uint8_t uc_thermal_controller_type;
uint16_t us_small_power_limit1; uint16_t us_small_power_limit1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment