From 8752f407923a268588c2b1302ae2e56cfbcb174a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Wed, 21 Dec 2016 16:04:23 +0800 Subject: [PATCH] monitor-manager-kms: Some harmless style fixes https://bugzilla.gnome.org/show_bug.cgi?id=777732 --- src/backends/native/meta-monitor-manager-kms.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/backends/native/meta-monitor-manager-kms.c b/src/backends/native/meta-monitor-manager-kms.c index eb47bb012..7c491fbb2 100644 --- a/src/backends/native/meta-monitor-manager-kms.c +++ b/src/backends/native/meta-monitor-manager-kms.c @@ -55,7 +55,8 @@ #define EDID_RETRY_TIMEOUT_MS 50 #define EDID_MAX_NUM_RETRIES 10 -typedef struct { +typedef struct +{ drmModeConnector *connector; unsigned n_encoders; @@ -80,7 +81,8 @@ typedef struct { gboolean has_scaling; } MetaOutputKms; -typedef struct { +typedef struct +{ uint32_t underscan_prop_id; uint32_t underscan_hborder_prop_id; uint32_t underscan_vborder_prop_id; @@ -1199,7 +1201,7 @@ meta_monitor_manager_kms_read_current (MetaMonitorManager *manager) MetaMonitorManagerKms *manager_kms = META_MONITOR_MANAGER_KMS (manager); drmModeRes *resources; - resources = drmModeGetResources(manager_kms->fd); + resources = drmModeGetResources (manager_kms->fd); /* TODO: max screen width only matters for stage views is not enabled. */ manager->max_screen_width = resources->max_width; @@ -1274,21 +1276,21 @@ meta_monitor_manager_kms_set_power_save_mode (MetaMonitorManager *manager, for (i = 0; i < manager->n_outputs; i++) { - MetaOutput *meta_output; + MetaOutput *output; MetaOutputKms *output_kms; - meta_output = &manager->outputs[i]; - output_kms = meta_output->driver_private; + output = &manager->outputs[i]; + output_kms = output->driver_private; if (output_kms->dpms_prop_id != 0) { - int ok = drmModeObjectSetProperty (manager_kms->fd, meta_output->winsys_id, + int ok = drmModeObjectSetProperty (manager_kms->fd, output->winsys_id, DRM_MODE_OBJECT_CONNECTOR, output_kms->dpms_prop_id, state); if (ok < 0) meta_warning ("Failed to set power save mode for output %s: %s\n", - meta_output->name, strerror (errno)); + output->name, strerror (errno)); } } }