diff options
author | Simon Ser <contact@emersion.fr> | 2021-09-07 12:24:10 +0200 |
---|---|---|
committer | Simon Zeni <simon@bl4ckb0ne.ca> | 2021-09-07 08:45:08 -0400 |
commit | de1c73021cf04affcb5c6c0faad0649bc8513610 (patch) | |
tree | 5f09ed92dbe46777399e47f1846e1ff7d0bd802d /backend/drm/drm.c | |
parent | 274c8189d47e569f669f87bd6d9f2b895065f097 (diff) |
backend/drm: drop unused arg from get_possible_crtcs
Constify drmModeConnector while at it.
Diffstat (limited to 'backend/drm/drm.c')
-rw-r--r-- | backend/drm/drm.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c index 13e9391f..90633892 100644 --- a/backend/drm/drm.c +++ b/backend/drm/drm.c @@ -1211,8 +1211,7 @@ static void realloc_crtcs(struct wlr_drm_backend *drm) { } } -static uint32_t get_possible_crtcs(int fd, drmModeRes *res, - drmModeConnector *conn) { +static uint32_t get_possible_crtcs(int fd, const drmModeConnector *conn) { uint32_t possible_crtcs = 0; for (int i = 0; i < conn->count_encoders; ++i) { @@ -1403,7 +1402,7 @@ void scan_drm_connectors(struct wlr_drm_backend *drm) { wl_list_insert(wlr_conn->output.modes.prev, &mode->wlr_mode.link); } - wlr_conn->possible_crtcs = get_possible_crtcs(drm->fd, res, drm_conn); + wlr_conn->possible_crtcs = get_possible_crtcs(drm->fd, drm_conn); if (wlr_conn->possible_crtcs == 0) { wlr_drm_conn_log(wlr_conn, WLR_ERROR, "No CRTC possible"); } |