mirror of
https://github.com/torvalds/linux.git
synced 2026-04-30 20:42:33 -04:00
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
This commit is contained in:
committed by
Daniel Vetter
parent
e5b8afbe34
commit
a4b10ccead
@@ -347,7 +347,7 @@ static void vgdev_atomic_commit_tail(struct drm_atomic_state *state)
|
||||
drm_atomic_helper_cleanup_planes(dev, state);
|
||||
}
|
||||
|
||||
static struct drm_mode_config_helper_funcs virtio_mode_config_helpers = {
|
||||
static const struct drm_mode_config_helper_funcs virtio_mode_config_helpers = {
|
||||
.atomic_commit_tail = vgdev_atomic_commit_tail,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user