aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon
diff options
context:
space:
mode:
authorJani Nikula <jani.nikula@intel.com>2015-04-13 04:21:40 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2015-04-13 09:00:12 -0400
commit16bb079e45f2c3a795b6b0546535cd6466275ec5 (patch)
tree85167bd0392a35165ad86f7dbf5ef08a993d15ec /drivers/gpu/drm/radeon
parent1b54bdb8ccbc46e5a406a690d48a1639d5001f4b (diff)
drm/radeon: constify more struct drm_*_helper funcs pointers
Some non-const pointers were added since the last constification, fix them. Signed-off-by: Jani Nikula <jani.nikula@intel.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/radeon')
-rw-r--r--drivers/gpu/drm/radeon/radeon_connectors.c4
-rw-r--r--drivers/gpu/drm/radeon/radeon_dp_mst.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_connectors.c b/drivers/gpu/drm/radeon/radeon_connectors.c
index f150c2495fa4..cebb65e07e1d 100644
--- a/drivers/gpu/drm/radeon/radeon_connectors.c
+++ b/drivers/gpu/drm/radeon/radeon_connectors.c
@@ -751,7 +751,7 @@ static int radeon_connector_set_property(struct drm_connector *connector, struct
751 if (connector->encoder) 751 if (connector->encoder)
752 radeon_encoder = to_radeon_encoder(connector->encoder); 752 radeon_encoder = to_radeon_encoder(connector->encoder);
753 else { 753 else {
754 struct drm_connector_helper_funcs *connector_funcs = connector->helper_private; 754 const struct drm_connector_helper_funcs *connector_funcs = connector->helper_private;
755 radeon_encoder = to_radeon_encoder(connector_funcs->best_encoder(connector)); 755 radeon_encoder = to_radeon_encoder(connector_funcs->best_encoder(connector));
756 } 756 }
757 757
@@ -762,7 +762,7 @@ static int radeon_connector_set_property(struct drm_connector *connector, struct
762 762
763 if (connector->encoder->crtc) { 763 if (connector->encoder->crtc) {
764 struct drm_crtc *crtc = connector->encoder->crtc; 764 struct drm_crtc *crtc = connector->encoder->crtc;
765 struct drm_crtc_helper_funcs *crtc_funcs = crtc->helper_private; 765 const struct drm_crtc_helper_funcs *crtc_funcs = crtc->helper_private;
766 struct radeon_crtc *radeon_crtc = to_radeon_crtc(crtc); 766 struct radeon_crtc *radeon_crtc = to_radeon_crtc(crtc);
767 767
768 radeon_crtc->output_csc = radeon_encoder->output_csc; 768 radeon_crtc->output_csc = radeon_encoder->output_csc;
diff --git a/drivers/gpu/drm/radeon/radeon_dp_mst.c b/drivers/gpu/drm/radeon/radeon_dp_mst.c
index 5952ff2bb647..1017338a49d9 100644
--- a/drivers/gpu/drm/radeon/radeon_dp_mst.c
+++ b/drivers/gpu/drm/radeon/radeon_dp_mst.c
@@ -604,7 +604,7 @@ radeon_dp_create_fake_mst_encoder(struct radeon_connector *connector)
604 struct radeon_encoder *radeon_encoder; 604 struct radeon_encoder *radeon_encoder;
605 struct radeon_encoder_mst *mst_enc; 605 struct radeon_encoder_mst *mst_enc;
606 struct drm_encoder *encoder; 606 struct drm_encoder *encoder;
607 struct drm_connector_helper_funcs *connector_funcs = connector->base.helper_private; 607 const struct drm_connector_helper_funcs *connector_funcs = connector->base.helper_private;
608 struct drm_encoder *enc_master = connector_funcs->best_encoder(&connector->base); 608 struct drm_encoder *enc_master = connector_funcs->best_encoder(&connector->base);
609 609
610 DRM_DEBUG_KMS("enc master is %p\n", enc_master); 610 DRM_DEBUG_KMS("enc master is %p\n", enc_master);