]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amd/pm: Delete unused get_display_power_level() function
authorTimur Kristóf <timur.kristof@gmail.com>
Tue, 19 May 2026 10:21:13 +0000 (12:21 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 27 May 2026 14:45:05 +0000 (10:45 -0400)
Was not called from anywhere.

Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Melissa Wen <mwen@igalia.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/include/kgd_pp_interface.h
drivers/gpu/drm/amd/pm/powerplay/amd_powerplay.c

index 1bbf531de5ed7e71ce0fa5aa56784b2dfebf3914..ac05a12e71bdf164c93a5e7f4e15a75ab1633d34 100644 (file)
@@ -476,8 +476,6 @@ struct amd_pm_funcs {
        u32 (*get_mclk)(void *handle, bool low);
        int (*display_configuration_change)(void *handle,
                const struct amd_pp_display_configuration *input);
-       int (*get_display_power_level)(void *handle,
-               struct amd_pp_simple_clock_info *output);
        int (*get_current_clocks)(void *handle,
                struct amd_pp_clock_info *clocks);
        int (*get_clock_by_type)(void *handle,
index e558b81b25c91f0513241f88e9225156e89f4d66..40fa2768b7727dcf6e3f7ef6b3514d2726cdd12d 100644 (file)
@@ -1020,17 +1020,6 @@ static int pp_display_configuration_change(void *handle,
        return 0;
 }
 
-static int pp_get_display_power_level(void *handle,
-               struct amd_pp_simple_clock_info *output)
-{
-       struct pp_hwmgr *hwmgr = handle;
-
-       if (!hwmgr || !hwmgr->pm_en || !output)
-               return -EINVAL;
-
-       return phm_get_dal_power_level(hwmgr, output);
-}
-
 static int pp_get_current_clocks(void *handle,
                struct amd_pp_clock_info *clocks)
 {
@@ -1588,7 +1577,6 @@ static const struct amd_pm_funcs pp_dpm_funcs = {
        .get_sclk = pp_dpm_get_sclk,
        .get_mclk = pp_dpm_get_mclk,
        .display_configuration_change = pp_display_configuration_change,
-       .get_display_power_level = pp_get_display_power_level,
        .get_current_clocks = pp_get_current_clocks,
        .get_clock_by_type = pp_get_clock_by_type,
        .get_clock_by_type_with_latency = pp_get_clock_by_type_with_latency,