aboutsummaryrefslogtreecommitdiff
path: root/backend/drm
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-12-24 12:34:13 +0100
committerSimon Ser <contact@emersion.fr>2020-12-24 12:34:13 +0100
commita7a230ebef54be442960dff6f8908079552e6d78 (patch)
tree94a5a68cc8c9ab67e02ae5ea697a4150679ae1c8 /backend/drm
parentc011a0e2eddec18c9f7381e79fc1983eb2e5a3c9 (diff)
backend/drm: make drmModePlane arg in add_plane const
Make it clearer it'll be free'd after add_plane returns.
Diffstat (limited to 'backend/drm')
-rw-r--r--backend/drm/drm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c
index 7303bbd6..26cf99df 100644
--- a/backend/drm/drm.c
+++ b/backend/drm/drm.c
@@ -89,7 +89,7 @@ bool check_drm_features(struct wlr_drm_backend *drm) {
}
static bool add_plane(struct wlr_drm_backend *drm,
- struct wlr_drm_crtc *crtc, drmModePlane *drm_plane,
+ struct wlr_drm_crtc *crtc, const drmModePlane *drm_plane,
uint32_t type, union wlr_drm_plane_props *props) {
assert(!(type == DRM_PLANE_TYPE_PRIMARY && crtc->primary));
assert(!(type == DRM_PLANE_TYPE_CURSOR && crtc->cursor));