Commit a004f603 authored by Jayant Shekhar's avatar Jayant Shekhar Committed by Sean Paul
Browse files

drm/msm/dpu: Cleanup dpu plane interface



Remove unused functions from dpu plane interface
and unused variables from dpu plane state structure.

Reviewed-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: default avatarJayant Shekhar <jshekhar@codeaurora.org>
Signed-off-by: default avatarSean Paul <seanpaul@chromium.org>
parent 0029f3b6
Loading
Loading
Loading
Loading
+0 −27
Original line number Original line Diff line number Diff line
@@ -28,23 +28,18 @@
/**
/**
 * struct dpu_plane_state: Define dpu extension of drm plane state object
 * struct dpu_plane_state: Define dpu extension of drm plane state object
 * @base:	base drm plane state object
 * @base:	base drm plane state object
 * @property_state: Local storage for msm_prop properties
 * @property_values:	cached plane property values
 * @aspace:	pointer to address space for input/output buffers
 * @aspace:	pointer to address space for input/output buffers
 * @input_fence:	dereferenced input fence pointer
 * @stage:	assigned by crtc blender
 * @stage:	assigned by crtc blender
 * @multirect_index: index of the rectangle of SSPP
 * @multirect_index: index of the rectangle of SSPP
 * @multirect_mode: parallel or time multiplex multirect mode
 * @multirect_mode: parallel or time multiplex multirect mode
 * @pending:	whether the current update is still pending
 * @pending:	whether the current update is still pending
 * @scaler3_cfg: configuration data for scaler3
 * @scaler3_cfg: configuration data for scaler3
 * @pixel_ext: configuration data for pixel extensions
 * @pixel_ext: configuration data for pixel extensions
 * @scaler_check_state: indicates status of user provided pixel extension data
 * @cdp_cfg:	CDP configuration
 * @cdp_cfg:	CDP configuration
 */
 */
struct dpu_plane_state {
struct dpu_plane_state {
	struct drm_plane_state base;
	struct drm_plane_state base;
	struct msm_gem_address_space *aspace;
	struct msm_gem_address_space *aspace;
	void *input_fence;
	enum dpu_stage stage;
	enum dpu_stage stage;
	uint32_t multirect_index;
	uint32_t multirect_index;
	uint32_t multirect_mode;
	uint32_t multirect_mode;
@@ -106,12 +101,6 @@ void dpu_plane_restore(struct drm_plane *plane);
 */
 */
void dpu_plane_flush(struct drm_plane *plane);
void dpu_plane_flush(struct drm_plane *plane);


/**
 * dpu_plane_kickoff - final plane operations before commit kickoff
 * @plane: Pointer to drm plane structure
 */
void dpu_plane_kickoff(struct drm_plane *plane);

/**
/**
 * dpu_plane_set_error: enable/disable error condition
 * dpu_plane_set_error: enable/disable error condition
 * @plane: pointer to drm_plane structure
 * @plane: pointer to drm_plane structure
@@ -146,14 +135,6 @@ int dpu_plane_validate_multirect_v2(struct dpu_multirect_plane_states *plane);
 */
 */
void dpu_plane_clear_multirect(const struct drm_plane_state *drm_state);
void dpu_plane_clear_multirect(const struct drm_plane_state *drm_state);


/**
 * dpu_plane_wait_input_fence - wait for input fence object
 * @plane:   Pointer to DRM plane object
 * @wait_ms: Wait timeout value
 * Returns: Zero on success
 */
int dpu_plane_wait_input_fence(struct drm_plane *plane, uint32_t wait_ms);

/**
/**
 * dpu_plane_color_fill - enables color fill on plane
 * dpu_plane_color_fill - enables color fill on plane
 * @plane:  Pointer to DRM plane object
 * @plane:  Pointer to DRM plane object
@@ -164,12 +145,4 @@ int dpu_plane_wait_input_fence(struct drm_plane *plane, uint32_t wait_ms);
int dpu_plane_color_fill(struct drm_plane *plane,
int dpu_plane_color_fill(struct drm_plane *plane,
		uint32_t color, uint32_t alpha);
		uint32_t color, uint32_t alpha);


/**
 * dpu_plane_set_revalidate - sets revalidate flag which forces a full
 *	validation of the plane properties in the next atomic check
 * @plane: Pointer to DRM plane object
 * @enable: Boolean to set/unset the flag
 */
void dpu_plane_set_revalidate(struct drm_plane *plane, bool enable);

#endif /* _DPU_PLANE_H_ */
#endif /* _DPU_PLANE_H_ */