drm/amd/display: whitespace cleanup in amdgpu_dm_mst_types.c/h
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 11 Oct 2017 13:44:50 +0000 (09:44 -0400)
committerDave Airlie <airlied@redhat.com>
Tue, 17 Oct 2017 00:43:02 +0000 (10:43 +1000)
To match kernel standards.  No intended functional change.

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.h

index 343645e4070b96ff31432e091a31a9fa2e791e49..eed316a8b096a713c10ad5824191736f6a62ff36 100644 (file)
@@ -57,10 +57,10 @@ static inline char *side_band_msg_type_to_str(uint32_t address)
 }
 
 void log_dpcd(uint8_t type,
-               uint32_t address,
-               uint8_t *data,
-               uint32_t size,
-               bool res)
+             uint32_t address,
+             uint8_t *data,
+             uint32_t size,
+             bool res)
 {
        DRM_DEBUG_KMS("Op: %s, addr: %04x, SideBand Msg: %s, Op res: %s\n",
                        (type == DP_AUX_NATIVE_READ) ||
@@ -77,9 +77,11 @@ void log_dpcd(uint8_t type,
 }
 #endif
 
-static ssize_t dm_dp_aux_transfer(struct drm_dp_aux *aux, struct drm_dp_aux_msg *msg)
+static ssize_t dm_dp_aux_transfer(struct drm_dp_aux *aux,
+                                 struct drm_dp_aux_msg *msg)
 {
-       enum i2c_mot_mode mot = (msg->request & DP_AUX_I2C_MOT) ? I2C_MOT_TRUE : I2C_MOT_FALSE;
+       enum i2c_mot_mode mot = (msg->request & DP_AUX_I2C_MOT) ?
+               I2C_MOT_TRUE : I2C_MOT_FALSE;
        enum ddc_result res;
 
        switch (msg->request & ~DP_AUX_I2C_MOT) {
@@ -125,10 +127,10 @@ static ssize_t dm_dp_aux_transfer(struct drm_dp_aux *aux, struct drm_dp_aux_msg
 
 #ifdef TRACE_DPCD
        log_dpcd(msg->request,
-                       msg->address,
-                       msg->buffer,
-                       msg->size,
-                       r == DDC_RESULT_SUCESSFULL);
+                msg->address,
+                msg->buffer,
+                msg->size,
+                r == DDC_RESULT_SUCESSFULL);
 #endif
 
        return msg->size;
@@ -229,9 +231,10 @@ dm_dp_create_fake_mst_encoder(struct amdgpu_dm_connector *connector)
        return amdgpu_encoder;
 }
 
-static struct drm_connector *dm_dp_add_mst_connector(struct drm_dp_mst_topology_mgr *mgr,
-                                                        struct drm_dp_mst_port *port,
-                                                        const char *pathprop)
+static struct drm_connector *
+dm_dp_add_mst_connector(struct drm_dp_mst_topology_mgr *mgr,
+                       struct drm_dp_mst_port *port,
+                       const char *pathprop)
 {
        struct amdgpu_dm_connector *master = container_of(mgr, struct amdgpu_dm_connector, mst_mgr);
        struct drm_device *dev = master->base.dev;
@@ -311,9 +314,8 @@ static struct drm_connector *dm_dp_add_mst_connector(struct drm_dp_mst_topology_
        return connector;
 }
 
-static void dm_dp_destroy_mst_connector(
-       struct drm_dp_mst_topology_mgr *mgr,
-       struct drm_connector *connector)
+static void dm_dp_destroy_mst_connector(struct drm_dp_mst_topology_mgr *mgr,
+                                       struct drm_connector *connector)
 {
        struct amdgpu_dm_connector *aconnector = to_amdgpu_dm_connector(connector);
 
@@ -438,9 +440,8 @@ static const struct drm_dp_mst_topology_cbs dm_mst_cbs = {
        .register_connector = dm_dp_mst_register_connector
 };
 
-void amdgpu_dm_initialize_dp_connector(
-       struct amdgpu_display_manager *dm,
-       struct amdgpu_dm_connector *aconnector)
+void amdgpu_dm_initialize_dp_connector(struct amdgpu_display_manager *dm,
+                                      struct amdgpu_dm_connector *aconnector)
 {
        aconnector->dm_dp_aux.aux.name = "dmdc";
        aconnector->dm_dp_aux.aux.dev = dm->adev->dev;
index ba64a408d79ca78a1fff581d1fe8695db2254214..2da851b40042aee9b79eb2c666d45c0f5061fee0 100644 (file)
@@ -29,8 +29,7 @@
 struct amdgpu_display_manager;
 struct amdgpu_dm_connector;
 
-void amdgpu_dm_initialize_dp_connector(
-       struct amdgpu_display_manager *dm,
-       struct amdgpu_dm_connector *aconnector);
+void amdgpu_dm_initialize_dp_connector(struct amdgpu_display_manager *dm,
+                                      struct amdgpu_dm_connector *aconnector);
 
 #endif