[mutter] monitor-manager-kms: Some harmless style fixes
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] monitor-manager-kms: Some harmless style fixes
- Date: Wed, 25 Jan 2017 08:36:50 +0000 (UTC)
commit 8752f407923a268588c2b1302ae2e56cfbcb174a
Author: Jonas Ådahl <jadahl gmail com>
Date: Wed Dec 21 16:04:23 2016 +0800
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 files 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 eb47bb0..7c491fb 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));
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]