drm/msm: don't install plane properties on crtc
authorRob Clark <robdclark@gmail.com>
Tue, 28 Jul 2015 15:05:03 +0000 (11:05 -0400)
committerRob Clark <robdclark@gmail.com>
Sat, 15 Aug 2015 22:27:15 +0000 (18:27 -0400)
This was a hold-over from the pre-atomic days and legacy userspace that
only understood CRTCs.  Fortunately we don't have any properties, so
this doesn't change anything.  But before we start growing some plane
properties, we should fix this.

Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/mdp/mdp4/mdp4_crtc.c
drivers/gpu/drm/msm/mdp/mdp4/mdp4_kms.h
drivers/gpu/drm/msm/mdp/mdp4/mdp4_plane.c
drivers/gpu/drm/msm/mdp/mdp5/mdp5_crtc.c
drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.h
drivers/gpu/drm/msm/mdp/mdp5/mdp5_plane.c

index 4dc158ed2e9540ccb6358ce43aaec9d3adf8f1d1..6ac9aa165768da569e9ac1ea3bd5f36331c83fee 100644 (file)
@@ -682,7 +682,5 @@ struct drm_crtc *mdp4_crtc_init(struct drm_device *dev,
        drm_crtc_helper_add(crtc, &mdp4_crtc_helper_funcs);
        plane->crtc = crtc;
 
-       mdp4_plane_install_properties(plane, &crtc->base);
-
        return crtc;
 }
index c1ecb9d6bdefecda24ba9ea308eb8a3430f6e1fb..3a79966f8e695b4df1acb44204b83c28c719fe97 100644 (file)
@@ -196,8 +196,6 @@ uint32_t mdp4_get_formats(enum mdp4_pipe pipe_id, uint32_t *pixel_formats,
                                !pipe_supports_yuv(pipe_id));
 }
 
-void mdp4_plane_install_properties(struct drm_plane *plane,
-               struct drm_mode_object *obj);
 enum mdp4_pipe mdp4_plane_pipe(struct drm_plane *plane);
 struct drm_plane *mdp4_plane_init(struct drm_device *dev,
                enum mdp4_pipe pipe_id, bool private_plane);
index 247a424445f75bb4d27573e0d9ac208262a6ac97..091cd06e930d4c82b140d0e8565c915fb0614f4f 100644 (file)
@@ -74,7 +74,7 @@ static void mdp4_plane_destroy(struct drm_plane *plane)
 }
 
 /* helper to install properties which are common to planes and crtcs */
-void mdp4_plane_install_properties(struct drm_plane *plane,
+static void mdp4_plane_install_properties(struct drm_plane *plane,
                struct drm_mode_object *obj)
 {
        // XXX
index 4c1df4e6e5bcaef44736a919b6e9382d7a3240a4..5a00f9fed8cb05345da94ed82c8fc3195408dae3 100644 (file)
@@ -776,7 +776,5 @@ struct drm_crtc *mdp5_crtc_init(struct drm_device *dev,
        drm_crtc_helper_add(crtc, &mdp5_crtc_helper_funcs);
        plane->crtc = crtc;
 
-       mdp5_plane_install_properties(plane, &crtc->base);
-
        return crtc;
 }
index e79ac09b72168c4f2af8be041d541736a81223fc..7e7fe2d6afedd820c7522a7386571161f441a293 100644 (file)
@@ -223,8 +223,6 @@ uint32_t mdp5_get_formats(enum mdp5_pipe pipe, uint32_t *pixel_formats,
                                !pipe_supports_yuv(pipe));
 }
 
-void mdp5_plane_install_properties(struct drm_plane *plane,
-               struct drm_mode_object *obj);
 uint32_t mdp5_plane_get_flush(struct drm_plane *plane);
 void mdp5_plane_complete_flip(struct drm_plane *plane);
 void mdp5_plane_complete_commit(struct drm_plane *plane,
index 179f24465c702d23fbaea3dbc6572c4ace6cd036..aca6e9ca5ad38c7d5ce82d8e0ad13f3f0c751467 100644 (file)
@@ -65,7 +65,7 @@ static void mdp5_plane_destroy(struct drm_plane *plane)
 }
 
 /* helper to install properties which are common to planes and crtcs */
-void mdp5_plane_install_properties(struct drm_plane *plane,
+static void mdp5_plane_install_properties(struct drm_plane *plane,
                struct drm_mode_object *obj)
 {
        // XXX