]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
drm/amd/powerplay: Tidy up cz_dpm_powerdown_uvd()
authorTom St Denis <tom.stdenis@amd.com>
Mon, 16 Oct 2017 17:25:42 +0000 (13:25 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 19 Oct 2017 19:27:12 +0000 (15:27 -0400)
Use PP_CAP and tidy up indentation.

Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c

index 75af4d94f90213b4c726e317a215c5fdfcfcdd3a..c2afc0aaa2cbeaffcb3fce7f23054b493e869a8d 100644 (file)
@@ -1274,10 +1274,8 @@ static int cz_dpm_force_dpm_level(struct pp_hwmgr *hwmgr,
 
 int cz_dpm_powerdown_uvd(struct pp_hwmgr *hwmgr)
 {
-       if (phm_cap_enabled(hwmgr->platform_descriptor.platformCaps,
-                                        PHM_PlatformCaps_UVDPowerGating))
-               return smum_send_msg_to_smc(hwmgr,
-                                                    PPSMC_MSG_UVDPowerOFF);
+       if (PP_CAP(PHM_PlatformCaps_UVDPowerGating))
+               return smum_send_msg_to_smc(hwmgr, PPSMC_MSG_UVDPowerOFF);
        return 0;
 }