summaryrefslogtreecommitdiffstats
path: root/include/drm/drm_mode_config.h
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2017-01-02 11:16:13 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2017-02-12 12:05:23 +0100
commita4b10ccead4de0cf46bffb32fcb9e134b202676b (patch)
tree4d21dd1c87e9efc1f2492718cec8c49271ba2bba /include/drm/drm_mode_config.h
parente5b8afbe34545f259fb4d15ccca34428f1c39792 (diff)
downloadlinux-0-day-a4b10ccead4de0cf46bffb32fcb9e134b202676b.tar.gz
linux-0-day-a4b10ccead4de0cf46bffb32fcb9e134b202676b.tar.xz
drm: Constify drm_mode_config atomic helper private pointer
The drm_mode_config helper private field points to a structure of function pointers that don't need to be modified at runtime. Make it const. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Gabriel Krisman Bertazi <krisman@collabora.co.uk> Acked-by: Brian Starkey <brian.starkey@arm.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: http://patchwork.freedesktop.org/patch/msgid/20170102091613.6310-1-laurent.pinchart@ideasonboard.com
Diffstat (limited to 'include/drm/drm_mode_config.h')
-rw-r--r--include/drm/drm_mode_config.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/drm/drm_mode_config.h b/include/drm/drm_mode_config.h
index 5a29978062d3c..6cd541d69c2e2 100644
--- a/include/drm/drm_mode_config.h
+++ b/include/drm/drm_mode_config.h
@@ -661,7 +661,7 @@ struct drm_mode_config {
/* cursor size */
uint32_t cursor_width, cursor_height;
- struct drm_mode_config_helper_funcs *helper_private;
+ const struct drm_mode_config_helper_funcs *helper_private;
};
void drm_mode_config_init(struct drm_device *dev);