summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/display/dc/inc/hw/mem_input.h
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2018-07-06 14:19:07 +0200
committerAlex Deucher <alexander.deucher@amd.com>2018-07-10 14:17:11 -0500
commita14cc8422a2601348bc5279c1d849920e91170f2 (patch)
tree05a48069aa127cbda2122b390abf99c0e57e6060 /drivers/gpu/drm/amd/display/dc/inc/hw/mem_input.h
parent10e7fddd4aebf95a9468f20fc1a87e6238b7d8d4 (diff)
drm/amd/display: make function tables const
It is good practice to make global function tables const to avoid accidental override. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/inc/hw/mem_input.h')
-rw-r--r--drivers/gpu/drm/amd/display/dc/inc/hw/mem_input.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/inc/hw/mem_input.h b/drivers/gpu/drm/amd/display/dc/inc/hw/mem_input.h
index 47f1dc5a43b7..da89c2edb07c 100644
--- a/drivers/gpu/drm/amd/display/dc/inc/hw/mem_input.h
+++ b/drivers/gpu/drm/amd/display/dc/inc/hw/mem_input.h
@@ -64,7 +64,7 @@ struct stutter_modes {
};
struct mem_input {
- struct mem_input_funcs *funcs;
+ const struct mem_input_funcs *funcs;
struct dc_context *ctx;
struct dc_plane_address request_address;
struct dc_plane_address current_address;