mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 10:33:41 +02:00
drm/amd/pm: Deprecate print_clk_levels callback
Use emit_clk_levels instead. Also, remove the unused helper function for getting sysfs buffer offset. Signed-off-by: Lijo Lazar <lijo.lazar@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
22d6d1b586
commit
e921a5f787
|
|
@ -829,15 +829,6 @@ struct pptable_funcs {
|
|||
*/
|
||||
int (*populate_umd_state_clk)(struct smu_context *smu);
|
||||
|
||||
/**
|
||||
* @print_clk_levels: Print DPM clock levels for a clock domain
|
||||
* to buffer. Star current level.
|
||||
*
|
||||
* Used for sysfs interfaces.
|
||||
* Return: Number of characters written to the buffer
|
||||
*/
|
||||
int (*print_clk_levels)(struct smu_context *smu, enum smu_clk_type clk_type, char *buf);
|
||||
|
||||
/**
|
||||
* @emit_clk_levels: Print DPM clock levels for a clock domain
|
||||
* to buffer using sysfs_emit_at. Star current level.
|
||||
|
|
|
|||
|
|
@ -187,19 +187,6 @@ int smu_cmn_get_combo_pptable(struct smu_context *smu);
|
|||
int smu_cmn_set_mp1_state(struct smu_context *smu,
|
||||
enum pp_mp1_state mp1_state);
|
||||
|
||||
/*
|
||||
* Helper function to make sysfs_emit_at() happy. Align buf to
|
||||
* the current page boundary and record the offset.
|
||||
*/
|
||||
static inline void smu_cmn_get_sysfs_buf(char **buf, int *offset)
|
||||
{
|
||||
if (!*buf || !offset)
|
||||
return;
|
||||
|
||||
*offset = offset_in_page(*buf);
|
||||
*buf -= *offset;
|
||||
}
|
||||
|
||||
bool smu_cmn_is_audio_func_enabled(struct amdgpu_device *adev);
|
||||
void smu_cmn_generic_soc_policy_desc(struct smu_dpm_policy *policy);
|
||||
void smu_cmn_generic_plpd_policy_desc(struct smu_dpm_policy *policy);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user