aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/nbio_v7_0.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2017-09-29 10:47:43 +1000
committerAlex Deucher <alexander.deucher@amd.com>2017-09-29 12:24:39 -0400
commitc6622f3afcb4da90e2600ee98e91a8a5640f7a27 (patch)
tree5648fb37fba8d22cae604fce23a6dafcc6cf8f8d /drivers/gpu/drm/amd/amdgpu/nbio_v7_0.h
parentamdgpu/soc15: make the pcie index/data registers constant. (diff)
downloadlinux-dev-c6622f3afcb4da90e2600ee98e91a8a5640f7a27.tar.xz
linux-dev-c6622f3afcb4da90e2600ee98e91a8a5640f7a27.zip
amdgpu/nbio: use constant nbio_hdp_flush_reg structs.
This removes the init path as well, since the init path just did some constant init of some structs. Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/nbio_v7_0.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/nbio_v7_0.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/nbio_v7_0.h b/drivers/gpu/drm/amd/amdgpu/nbio_v7_0.h
index 21bad0098bf6..df8fa90f40d7 100644
--- a/drivers/gpu/drm/amd/amdgpu/nbio_v7_0.h
+++ b/drivers/gpu/drm/amd/amdgpu/nbio_v7_0.h
@@ -26,7 +26,7 @@
#include "soc15_common.h"
-extern struct nbio_hdp_flush_reg nbio_v7_0_hdp_flush_reg;
+extern const struct nbio_hdp_flush_reg nbio_v7_0_hdp_flush_reg;
extern const struct nbio_pcie_index_data nbio_v7_0_pcie_index_data;
int nbio_v7_0_init(struct amdgpu_device *adev);
u32 nbio_v7_0_get_atombios_scratch_regs(struct amdgpu_device *adev,