On Mon, Mar 21, 2016 at 7:38 PM, Dave Airlie <airlied@xxxxxxxxx> wrote: > From: Dave Airlie <airlied@xxxxxxxxxx> > > This was all sorts of ugly from when I hacked it up, > just clean it up now and remove the extra indents. > > Signed-off-by: Dave Airlie <airlied@xxxxxxxxxx> Applied the series to my fixes tree, thanks! Alex > --- > drivers/gpu/drm/radeon/radeon_dp_mst.c | 14 ++++++-------- > 1 file changed, 6 insertions(+), 8 deletions(-) > > diff --git a/drivers/gpu/drm/radeon/radeon_dp_mst.c b/drivers/gpu/drm/radeon/radeon_dp_mst.c > index 9d210bb..43cffb5 100644 > --- a/drivers/gpu/drm/radeon/radeon_dp_mst.c > +++ b/drivers/gpu/drm/radeon/radeon_dp_mst.c > @@ -510,6 +510,7 @@ static bool radeon_mst_mode_fixup(struct drm_encoder *encoder, > { > struct radeon_encoder_mst *mst_enc; > struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); > + struct radeon_connector_atom_dig *dig_connector; > int bpp = 24; > > mst_enc = radeon_encoder->enc_priv; > @@ -523,14 +524,11 @@ static bool radeon_mst_mode_fixup(struct drm_encoder *encoder, > > > drm_mode_set_crtcinfo(adjusted_mode, 0); > - { > - struct radeon_connector_atom_dig *dig_connector; > - dig_connector = mst_enc->connector->con_priv; > - dig_connector->dp_lane_count = drm_dp_max_lane_count(dig_connector->dpcd); > - dig_connector->dp_clock = drm_dp_max_link_rate(dig_connector->dpcd); > - DRM_DEBUG_KMS("dig clock %p %d %d\n", dig_connector, > - dig_connector->dp_lane_count, dig_connector->dp_clock); > - } > + dig_connector = mst_enc->connector->con_priv; > + dig_connector->dp_lane_count = drm_dp_max_lane_count(dig_connector->dpcd); > + dig_connector->dp_clock = drm_dp_max_link_rate(dig_connector->dpcd); > + DRM_DEBUG_KMS("dig clock %p %d %d\n", dig_connector, > + dig_connector->dp_lane_count, dig_connector->dp_clock); > return true; > } > > -- > 2.5.0 > > _______________________________________________ > dri-devel mailing list > dri-devel@xxxxxxxxxxxxxxxxxxxxx > https://lists.freedesktop.org/mailman/listinfo/dri-devel _______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/dri-devel