diff options
author | David Rokhvarg <David.Rokhvarg@amd.com> | 2015-12-14 18:51:39 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-02-11 00:13:59 +0300 |
commit | 155f1127ce6f1e2da6ee139b2869242a40b99814 (patch) | |
tree | 76f79f37c67676dedb50cc1b891cff472d853366 /drivers/gpu/drm/amd/powerplay/inc | |
parent | f1232c6136a9edaf8da10135481d389b6e3961d9 (diff) | |
download | linux-155f1127ce6f1e2da6ee139b2869242a40b99814.tar.xz |
drm/amd/powerplay: Make declarations of functions exposed to DAL type-safe.
Signed-off-by: David Rokhvarg <David.Rokhvarg@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/powerplay/inc')
-rw-r--r-- | drivers/gpu/drm/amd/powerplay/inc/amd_powerplay.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/inc/amd_powerplay.h b/drivers/gpu/drm/amd/powerplay/inc/amd_powerplay.h index d0aeb14f6256..7255f7ddf93a 100644 --- a/drivers/gpu/drm/amd/powerplay/inc/amd_powerplay.h +++ b/drivers/gpu/drm/amd/powerplay/inc/amd_powerplay.h @@ -349,18 +349,23 @@ struct amd_powerplay { int amd_powerplay_init(struct amd_pp_init *pp_init, struct amd_powerplay *amd_pp); + int amd_powerplay_fini(void *handle); -int amd_powerplay_display_configuration_change(void *handle, const void *input); +int amd_powerplay_display_configuration_change(void *handle, + const struct amd_pp_display_configuration *input); int amd_powerplay_get_display_power_level(void *handle, struct amd_pp_simple_clock_info *output); -int amd_powerplay_get_current_clocks(void *handle, void *output); +int amd_powerplay_get_current_clocks(void *handle, + struct amd_pp_clock_info *output); -int amd_powerplay_get_clock_by_type(void *handle, enum amd_pp_clock_type type, struct amd_pp_clocks *clocks); +int amd_powerplay_get_clock_by_type(void *handle, + enum amd_pp_clock_type type, + struct amd_pp_clocks *clocks); -int amd_powerplay_get_display_mode_validation_clocks(void *handle, const void *input, - void *output); +int amd_powerplay_get_display_mode_validation_clocks(void *handle, + struct amd_pp_simple_clock_info *output); #endif /* _AMD_POWERPLAY_H_ */ |