Commit c01760d6 authored by Anthony Koo's avatar Anthony Koo Committed by Alex Deucher

drm/amd/display: make some rn_clk_mgr structs and funcs static

[Why]
There are some structures and functions meant only to be used in the
scope of that single rn_clk_mgr c file.

[How]
Make structs and funcs static if only meant to be used within
rn_clk_mgr
Signed-off-by: default avatarAnthony Koo <Anthony.Koo@amd.com>
Reviewed-by: default avatarAric Cyr <Aric.Cyr@amd.com>
Acked-by: default avatarRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Acked-by: default avatarHarry Wentland <harry.wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent accde06f
...@@ -405,7 +405,7 @@ void rn_init_clocks(struct clk_mgr *clk_mgr) ...@@ -405,7 +405,7 @@ void rn_init_clocks(struct clk_mgr *clk_mgr)
clk_mgr->clks.pwr_state = DCN_PWR_STATE_UNKNOWN; clk_mgr->clks.pwr_state = DCN_PWR_STATE_UNKNOWN;
} }
void build_watermark_ranges(struct clk_bw_params *bw_params, struct pp_smu_wm_range_sets *ranges) static void build_watermark_ranges(struct clk_bw_params *bw_params, struct pp_smu_wm_range_sets *ranges)
{ {
int i, num_valid_sets; int i, num_valid_sets;
...@@ -503,7 +503,7 @@ static struct clk_mgr_funcs dcn21_funcs = { ...@@ -503,7 +503,7 @@ static struct clk_mgr_funcs dcn21_funcs = {
.notify_wm_ranges = rn_notify_wm_ranges .notify_wm_ranges = rn_notify_wm_ranges
}; };
struct clk_bw_params rn_bw_params = { static struct clk_bw_params rn_bw_params = {
.vram_type = Ddr4MemType, .vram_type = Ddr4MemType,
.num_channels = 1, .num_channels = 1,
.clk_table = { .clk_table = {
...@@ -543,7 +543,7 @@ struct clk_bw_params rn_bw_params = { ...@@ -543,7 +543,7 @@ struct clk_bw_params rn_bw_params = {
}; };
struct wm_table ddr4_wm_table = { static struct wm_table ddr4_wm_table = {
.entries = { .entries = {
{ {
.wm_inst = WM_A, .wm_inst = WM_A,
...@@ -580,7 +580,7 @@ struct wm_table ddr4_wm_table = { ...@@ -580,7 +580,7 @@ struct wm_table ddr4_wm_table = {
} }
}; };
struct wm_table lpddr4_wm_table = { static struct wm_table lpddr4_wm_table = {
.entries = { .entries = {
{ {
.wm_inst = WM_A, .wm_inst = WM_A,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment