diff options
author | Vitaly Prosyak <vitaly.prosyak@amd.com> | 2015-12-03 18:27:57 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2015-12-22 00:42:53 +0300 |
commit | 1c9a90820beb63f75ac7dabf75533f425aadc3fa (patch) | |
tree | 6cc5eb51b4b4187a2f78c024f9f4f02980110e0c /drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c | |
parent | c4dd206be1560ebb6eef9cf2200d10a4577cef3f (diff) | |
download | linux-1c9a90820beb63f75ac7dabf75533f425aadc3fa.tar.xz |
amd/powerplay: Fix get dal power level
Simplify data struct for get dal power level
Signed-off-by: Vitaly Prosyak <vitaly.prosyak@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c')
-rw-r--r-- | drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c b/drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c index d24a41964fbe..881feb87fc8b 100644 --- a/drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c @@ -262,12 +262,13 @@ int phm_store_dal_configuration_data(struct pp_hwmgr *hwmgr, } int phm_get_dal_power_level(struct pp_hwmgr *hwmgr, - struct pp_dal_clock_info*info) + struct amd_pp_dal_clock_info*info) { - if (hwmgr == NULL || hwmgr->hwmgr_func->get_dal_power_level == NULL) + if (info == NULL || hwmgr == NULL || + hwmgr->hwmgr_func->get_dal_power_level == NULL) return -EINVAL; - return hwmgr->hwmgr_func->get_dal_power_level(hwmgr,info); + return hwmgr->hwmgr_func->get_dal_power_level(hwmgr, info); } int phm_set_cpu_power_state(struct pp_hwmgr *hwmgr) |