Commit c83b9d60 authored by Magali Lemes's avatar Magali Lemes Committed by Alex Deucher
Browse files

drm/amd/display: make variables static



As "dcn3_1_soc", "dcn3_15_soc", and "dcn3_16_soc" are not used outside
of their corresponding "dcn3*_fpu.c", make them static and remove their
extern declaration.

Fixes: 26f4712a ("drm/amd/display: move FPU related code from dcn31 to dml/dcn31 folder")
Fixes: fa896297 ("drm/amd/display: move FPU related code from dcn315 to dml/dcn31 folder")
Fixes: 3f8951cc ("drm/amd/display: move FPU related code from dcn316 to dml/dcn31 folder")
Signed-off-by: default avatarMagali Lemes <magalilemes00@gmail.com>
Reviewed-by: default avatarRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Reviewed-by: default avatarMaíra Canal <mairacanal@riseup.net>
Reviewed-by: default avatarMelissa Wen <mwen@igalia.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 41ead3e0
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -32,7 +32,6 @@
	container_of(pool, struct dcn31_resource_pool, base)

extern struct _vcs_dpi_ip_params_st dcn3_1_ip;
extern struct _vcs_dpi_soc_bounding_box_st dcn3_1_soc;

struct dcn31_resource_pool {
	struct resource_pool base;
+0 −1
Original line number Diff line number Diff line
@@ -32,7 +32,6 @@
	container_of(pool, struct dcn315_resource_pool, base)

extern struct _vcs_dpi_ip_params_st dcn3_15_ip;
extern struct _vcs_dpi_ip_params_st dcn3_15_soc;

struct dcn315_resource_pool {
	struct resource_pool base;
+0 −1
Original line number Diff line number Diff line
@@ -32,7 +32,6 @@
	container_of(pool, struct dcn316_resource_pool, base)

extern struct _vcs_dpi_ip_params_st dcn3_16_ip;
extern struct _vcs_dpi_ip_params_st dcn3_16_soc;

struct dcn316_resource_pool {
	struct resource_pool base;
+3 −3
Original line number Diff line number Diff line
@@ -114,7 +114,7 @@ struct _vcs_dpi_ip_params_st dcn3_1_ip = {
	.dcc_supported = true,
};

struct _vcs_dpi_soc_bounding_box_st dcn3_1_soc = {
static struct _vcs_dpi_soc_bounding_box_st dcn3_1_soc = {
		/*TODO: correct dispclk/dppclk voltage level determination*/
	.clock_limits = {
		{
@@ -259,7 +259,7 @@ struct _vcs_dpi_ip_params_st dcn3_15_ip = {
	.dcc_supported = true,
};

struct _vcs_dpi_soc_bounding_box_st dcn3_15_soc = {
static struct _vcs_dpi_soc_bounding_box_st dcn3_15_soc = {
	.sr_exit_time_us = 9.0,
	.sr_enter_plus_exit_time_us = 11.0,
	.sr_exit_z8_time_us = 50.0,
@@ -355,7 +355,7 @@ struct _vcs_dpi_ip_params_st dcn3_16_ip = {
	.dcc_supported = true,
};

struct _vcs_dpi_soc_bounding_box_st dcn3_16_soc = {
static struct _vcs_dpi_soc_bounding_box_st dcn3_16_soc = {
		/*TODO: correct dispclk/dppclk voltage level determination*/
	.clock_limits = {
		{