Skip to content

Commit c994796

Browse files
pcornuBenjamin-Gaignard
authored andcommitted
drm/stm: ltdc: Constify funcs structures
Constify drm funcs structures. Signed-off-by: Philippe CORNU <[email protected]> Reviewed-by: Benjamin Gaignard <[email protected]> Signed-off-by: Benjamin Gaignard <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 0e21e3b commit c994796

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/gpu/drm/stm/ltdc.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ static void ltdc_crtc_atomic_flush(struct drm_crtc *crtc,
511511
}
512512
}
513513

514-
static struct drm_crtc_helper_funcs ltdc_crtc_helper_funcs = {
514+
static const struct drm_crtc_helper_funcs ltdc_crtc_helper_funcs = {
515515
.load_lut = ltdc_crtc_load_lut,
516516
.mode_set_nofb = ltdc_crtc_mode_set_nofb,
517517
.atomic_flush = ltdc_crtc_atomic_flush,
@@ -537,7 +537,7 @@ void ltdc_crtc_disable_vblank(struct drm_device *ddev, unsigned int pipe)
537537
reg_clear(ldev->regs, LTDC_IER, IER_LIE);
538538
}
539539

540-
static struct drm_crtc_funcs ltdc_crtc_funcs = {
540+
static const struct drm_crtc_funcs ltdc_crtc_funcs = {
541541
.destroy = drm_crtc_cleanup,
542542
.set_config = drm_atomic_helper_set_config,
543543
.page_flip = drm_atomic_helper_page_flip,
@@ -693,7 +693,7 @@ static void ltdc_plane_atomic_disable(struct drm_plane *plane,
693693
oldstate->crtc->base.id, plane->base.id);
694694
}
695695

696-
static struct drm_plane_funcs ltdc_plane_funcs = {
696+
static const struct drm_plane_funcs ltdc_plane_funcs = {
697697
.update_plane = drm_atomic_helper_update_plane,
698698
.disable_plane = drm_atomic_helper_disable_plane,
699699
.destroy = drm_plane_cleanup,

0 commit comments

Comments
 (0)