diff options
author | Simon Ser <contact@emersion.fr> | 2022-12-13 18:35:09 +0100 |
---|---|---|
committer | Alexander Orzechowski <alex@ozal.ski> | 2022-12-13 21:35:10 +0000 |
commit | caaea01bf6a39198eb26ee0b95de12f68eca72d8 (patch) | |
tree | d49b1c2676cb867fcf5321eaf1e17df53d86add2 /backend/drm | |
parent | c675380c56437a522c54e179131d42cb96f6e6cf (diff) |
backend/drm: drop unused arg in connector_get_current_mode()
Diffstat (limited to 'backend/drm')
-rw-r--r-- | backend/drm/drm.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c index 94bf2059..ce1aca09 100644 --- a/backend/drm/drm.c +++ b/backend/drm/drm.c @@ -1200,8 +1200,7 @@ static struct wlr_drm_connector *create_drm_connector(struct wlr_drm_backend *dr return wlr_conn; } -static drmModeModeInfo *connector_get_current_mode( - struct wlr_drm_connector *wlr_conn, const drmModeConnector *drm_conn) { +static drmModeModeInfo *connector_get_current_mode(struct wlr_drm_connector *wlr_conn) { struct wlr_drm_backend *drm = wlr_conn->backend; if (wlr_conn->crtc == NULL) { @@ -1301,8 +1300,7 @@ static void connect_drm_connector(struct wlr_drm_connector *wlr_conn, // Before iterating on the conn's modes, get the current KMS mode // in use from the connector's CRTC. - drmModeModeInfo *current_modeinfo = - connector_get_current_mode(wlr_conn, drm_conn); + drmModeModeInfo *current_modeinfo = connector_get_current_mode(wlr_conn); wlr_log(WLR_INFO, "Detected modes:"); |