aboutsummaryrefslogtreecommitdiff
path: root/backend/drm
diff options
context:
space:
mode:
Diffstat (limited to 'backend/drm')
-rw-r--r--backend/drm/atomic.c (renamed from backend/drm/iface_atomic.c)2
-rw-r--r--backend/drm/drm.c6
-rw-r--r--backend/drm/legacy.c (renamed from backend/drm/iface_legacy.c)2
3 files changed, 5 insertions, 5 deletions
diff --git a/backend/drm/iface_atomic.c b/backend/drm/atomic.c
index 1aef05d1..e7374a00 100644
--- a/backend/drm/iface_atomic.c
+++ b/backend/drm/atomic.c
@@ -181,7 +181,7 @@ static bool atomic_crtc_move_cursor(struct wlr_drm_backend *drm,
return atomic_end(drm->fd, &atom);
}
-const struct wlr_drm_interface iface_atomic = {
+const struct wlr_drm_interface atomic_iface = {
.conn_enable = atomic_conn_enable,
.crtc_pageflip = atomic_crtc_pageflip,
.crtc_set_cursor = atomic_crtc_set_cursor,
diff --git a/backend/drm/drm.c b/backend/drm/drm.c
index ccdc92d9..1a5fea9f 100644
--- a/backend/drm/drm.c
+++ b/backend/drm/drm.c
@@ -32,13 +32,13 @@ bool wlr_drm_check_features(struct wlr_drm_backend *drm) {
if (getenv("WLR_DRM_NO_ATOMIC")) {
wlr_log(L_DEBUG, "WLR_DRM_NO_ATOMIC set, forcing legacy DRM interface");
- drm->iface = &iface_legacy;
+ drm->iface = &legacy_iface;
} else if (drmSetClientCap(drm->fd, DRM_CLIENT_CAP_ATOMIC, 1)) {
wlr_log(L_DEBUG, "Atomic modesetting unsupported, using legacy DRM interface");
- drm->iface = &iface_legacy;
+ drm->iface = &legacy_iface;
} else {
wlr_log(L_DEBUG, "Using atomic DRM interface");
- drm->iface = &iface_atomic;
+ drm->iface = &atomic_iface;
}
return true;
diff --git a/backend/drm/iface_legacy.c b/backend/drm/legacy.c
index cf73bb87..d75eb2cb 100644
--- a/backend/drm/iface_legacy.c
+++ b/backend/drm/legacy.c
@@ -58,7 +58,7 @@ bool legacy_crtc_move_cursor(struct wlr_drm_backend *drm,
return !drmModeMoveCursor(drm->fd, crtc->id, x, y);
}
-const struct wlr_drm_interface iface_legacy = {
+const struct wlr_drm_interface legacy_iface = {
.conn_enable = legacy_conn_enable,
.crtc_pageflip = legacy_crtc_pageflip,
.crtc_set_cursor = legacy_crtc_set_cursor,