drm/amd/pm: Move some functions to smu_v13_0.c as generic code
authorMa Jun <Jun.Ma2@amd.com>
Fri, 3 Nov 2023 01:48:06 +0000 (09:48 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 17 Nov 2023 14:29:54 +0000 (09:29 -0500)
commit857c838c782728318c581cb656fddd74faa89ad2
treefe761153daf803464668b2f5d3bab958b7fa0796
parentd8a3813713c3843351123138c8b191142c266521
drm/amd/pm: Move some functions to smu_v13_0.c as generic code

Use generic functions and remove the duplicate code

Signed-off-by: Ma Jun <Jun.Ma2@amd.com>
Reviewed-by: Yang Wang <kevinyang.wang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c