diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2017-01-02 11:16:13 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2017-02-12 12:05:23 +0100 |
commit | a4b10ccead4de0cf46bffb32fcb9e134b202676b (patch) | |
tree | 4d21dd1c87e9efc1f2492718cec8c49271ba2bba /drivers/gpu/drm/imx | |
parent | e5b8afbe34545f259fb4d15ccca34428f1c39792 (diff) | |
download | linux-stable-a4b10ccead4de0cf46bffb32fcb9e134b202676b.tar.gz linux-stable-a4b10ccead4de0cf46bffb32fcb9e134b202676b.tar.bz2 linux-stable-a4b10ccead4de0cf46bffb32fcb9e134b202676b.zip |
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 'drivers/gpu/drm/imx')
-rw-r--r-- | drivers/gpu/drm/imx/imx-drm-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/imx/imx-drm-core.c b/drivers/gpu/drm/imx/imx-drm-core.c index 65bd8b8a2494..45dceb672e20 100644 --- a/drivers/gpu/drm/imx/imx-drm-core.c +++ b/drivers/gpu/drm/imx/imx-drm-core.c @@ -138,7 +138,7 @@ static void imx_drm_atomic_commit_tail(struct drm_atomic_state *state) drm_atomic_helper_cleanup_planes(dev, state); } -static struct drm_mode_config_helper_funcs imx_drm_mode_config_helpers = { +static const struct drm_mode_config_helper_funcs imx_drm_mode_config_helpers = { .atomic_commit_tail = imx_drm_atomic_commit_tail, }; |