media: v4l: vsp1: Remove unused field from vsp1_drm_pipeline structure
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Fri, 23 Feb 2018 20:21:40 +0000 (15:21 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 4 May 2018 11:54:00 +0000 (07:54 -0400)
The vsp1_drm_pipeline enabled field is set but never used. Remove it.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/vsp1/vsp1_drm.c
drivers/media/platform/vsp1/vsp1_drm.h

index a1f2ba044092150f84c6bb9545e91e905aa3d985..a267f12f0cc8cd2e42ee6d8717da37b49893a02d 100644 (file)
@@ -273,10 +273,6 @@ EXPORT_SYMBOL_GPL(vsp1_du_setup_lif);
  */
 void vsp1_du_atomic_begin(struct device *dev, unsigned int pipe_index)
 {
-       struct vsp1_device *vsp1 = dev_get_drvdata(dev);
-       struct vsp1_drm_pipeline *drm_pipe = &vsp1->drm->pipe[pipe_index];
-
-       drm_pipe->enabled = drm_pipe->pipe.num_inputs != 0;
 }
 EXPORT_SYMBOL_GPL(vsp1_du_atomic_begin);
 
index 1cd9db785bf7fea319962c1bb033e305e1853e9c..9aa19325cbe9f9558cae01209a149d449cf4663c 100644 (file)
 /**
  * vsp1_drm_pipeline - State for the API exposed to the DRM driver
  * @pipe: the VSP1 pipeline used for display
- * @enabled: pipeline state at the beginning of an update
  * @du_complete: frame completion callback for the DU driver (optional)
  * @du_private: data to be passed to the du_complete callback
  */
 struct vsp1_drm_pipeline {
        struct vsp1_pipeline pipe;
-       bool enabled;
 
        /* Frame synchronisation */
        void (*du_complete)(void *, bool);