mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 05:56:14 -04:00
drm/amd/display: fix function scopes
This turns previously global functions into static, thus removing
compile-time warnings such as:
warning: no previous prototype for 'get_highest_allowed_voltage_level'
[-Wmissing-prototypes]
742 | unsigned int get_highest_allowed_voltage_level(uint32_t chip_family, uint32_t hw_internal_rev, uint32_t pci_revision_id)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: no previous prototype for 'rv1_vbios_smu_send_msg_with_param'
[-Wmissing-prototypes]
102 | int rv1_vbios_smu_send_msg_with_param(struct clk_mgr_internal *clk_mgr, unsigned int msg_id, unsigned int param)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Changes since v1:
- As suggested by Rodrigo Siqueira:
1. Rewrite function signatures to make them more readable.
2. Get rid of unused functions in order to remove 'defined but not
used' warnings.
Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Isabella Basso <isabbasso@riseup.net>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
33c3365ec6
commit
240e6d25a0
@@ -1711,14 +1711,6 @@ void dml21_rq_dlg_get_dlg_reg(
|
||||
dml_print("DML_DLG: Calculation for pipe[%d] end\n", pipe_idx);
|
||||
}
|
||||
|
||||
void dml_rq_dlg_get_arb_params(struct display_mode_lib *mode_lib, display_arb_params_st *arb_param)
|
||||
{
|
||||
memset(arb_param, 0, sizeof(*arb_param));
|
||||
arb_param->max_req_outstanding = 256;
|
||||
arb_param->min_req_outstanding = 68;
|
||||
arb_param->sat_level_us = 60;
|
||||
}
|
||||
|
||||
static void calculate_ttu_cursor(
|
||||
struct display_mode_lib *mode_lib,
|
||||
double *refcyc_per_req_delivery_pre_cur,
|
||||
|
||||
Reference in New Issue
Block a user