drm/amd/powerplay: change struct name.
authorRex Zhu <Rex.Zhu@amd.com>
Thu, 10 Dec 2015 08:49:50 +0000 (16:49 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 10 Feb 2016 21:11:04 +0000 (16:11 -0500)
amd_pp_dal_clock_info to amd_pp_simple_clock_info.

Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/amd_powerplay.c
drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c
drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c
drivers/gpu/drm/amd/powerplay/inc/amd_powerplay.h
drivers/gpu/drm/amd/powerplay/inc/hardwaremanager.h
drivers/gpu/drm/amd/powerplay/inc/hwmgr.h

index 4719fa7e8cd7d31ae6815085c48423a711f0e0ed..9a18c5045926a0e7df73f9df280866e7adb9eec3 100644 (file)
@@ -764,7 +764,7 @@ int amd_powerplay_display_configuration_change(void *handle, const void *input)
 }
 
 int amd_powerplay_get_display_power_level(void *handle,
-               struct amd_pp_dal_clock_info *output)
+               struct amd_pp_simple_clock_info *output)
 {
        struct pp_hwmgr  *hwmgr;
 
index 99c3d1c6ee4dfa79ff251867a998c9284c801fcb..2e08021095a139b704de3ebfb10a48531eb8975e 100644 (file)
@@ -1679,10 +1679,10 @@ static void cz_hw_print_display_cfg(
 }
 
  static int cz_get_dal_power_level(struct pp_hwmgr *hwmgr,
-               struct amd_pp_dal_clock_info*info)
+               struct amd_pp_simple_clock_info *info)
 {
        uint32_t i;
-       const struct phm_clock_voltage_dependency_table * table =
+       const struct phm_clock_voltage_dependency_table *table =
                        hwmgr->dyn_state.vddc_dep_on_dal_pwrl;
        const struct phm_clock_and_voltage_limits* limits =
                        &hwmgr->dyn_state.max_clock_voltage_on_ac;
index 0f2d5e4bc241a46042b1182f4524781d47ab42a4..a53d4f280058e3a32c4122fe97c2f80e6028b335 100644 (file)
@@ -313,7 +313,7 @@ int phm_store_dal_configuration_data(struct pp_hwmgr *hwmgr,
 }
 
 int phm_get_dal_power_level(struct pp_hwmgr *hwmgr,
-               struct amd_pp_dal_clock_info *info)
+               struct amd_pp_simple_clock_info *info)
 {
        PHM_FUNC_CHECK(hwmgr);
 
index 4702a281e6c5257bef4f3ae19a5680aba77e355c..6825af6b03c9206eb3caa971e2ae4e77bc52fd44 100644 (file)
@@ -213,7 +213,7 @@ struct amd_pp_display_configuration {
        uint32_t dce_tolerable_mclk_in_active_latency;
 };
 
-struct amd_pp_dal_clock_info {
+struct amd_pp_simple_clock_info {
        uint32_t        engine_max_clock;
        uint32_t        memory_max_clock;
        uint32_t        level;
@@ -310,7 +310,7 @@ int amd_powerplay_fini(void *handle);
 int amd_powerplay_display_configuration_change(void *handle, const void *input);
 
 int amd_powerplay_get_display_power_level(void *handle,
-               struct amd_pp_dal_clock_info *output);
+               struct amd_pp_simple_clock_info *output);
 
 
 #endif /* _AMD_POWERPLAY_H_ */
index 91795efe13365a5a55c79b47bab02ae70a52669d..ce97bf24b5e996edda0662edf037f3c16c2b6df3 100644 (file)
@@ -375,7 +375,7 @@ extern int phm_store_dal_configuration_data(struct pp_hwmgr *hwmgr,
                const struct amd_pp_display_configuration *display_config);
 
 extern int phm_get_dal_power_level(struct pp_hwmgr *hwmgr,
-               struct amd_pp_dal_clock_info*info);
+               struct amd_pp_simple_clock_info *info);
 
 extern int phm_set_cpu_power_state(struct pp_hwmgr *hwmgr);
 
index 4094e818500418ff12c7404ace1216b0c9cefc3b..e3214f1161cc84f87eeb67c5e3ca01721ced8684 100644 (file)
@@ -325,7 +325,7 @@ struct pp_hwmgr_func {
                                bool cc6_disable, bool pstate_disable,
                                bool pstate_switch_disable);
        int (*get_dal_power_level)(struct pp_hwmgr *hwmgr,
-                                  struct amd_pp_dal_clock_info *info);
+                                  struct amd_pp_simple_clock_info *info);
        int (*power_off_asic)(struct pp_hwmgr *hwmgr);
        int (*get_pp_table)(struct pp_hwmgr *hwmgr, char **table);
        int (*set_pp_table)(struct pp_hwmgr *hwmgr, const char *buf, size_t size);