mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 10:09:10 +02:00
drm/amd/pm: Delete unused get_display_power_level() function
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>
This commit is contained in:
parent
ff3af5416a
commit
f8bcc08214
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user