mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-27 04:38:14 -04:00
drm/msm/dpu: drop dpu_plane_pipe function
There no more need for the dpu_plane_pipe() function, crtc code can access pstate->pipe_hw.idx directly. Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com> Tested-by: Abhinav Kumar <quic_abhinavk@quicinc.com> # sc7280 Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Patchwork: https://patchwork.freedesktop.org/patch/527320/ Link: https://lore.kernel.org/r/20230316161653.4106395-7-dmitry.baryshkov@linaro.org Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
This commit is contained in:
@@ -432,7 +432,7 @@ static void _dpu_crtc_blend_setup_mixer(struct drm_crtc *crtc,
|
||||
pstate = to_dpu_plane_state(state);
|
||||
fb = state->fb;
|
||||
|
||||
sspp_idx = dpu_plane_pipe(plane);
|
||||
sspp_idx = pstate->hw_sspp->idx;
|
||||
set_bit(sspp_idx, fetch_active);
|
||||
|
||||
DRM_DEBUG_ATOMIC("crtc %d stage:%d - plane %d sspp %d fb %d\n",
|
||||
@@ -1227,7 +1227,7 @@ static int dpu_crtc_atomic_check(struct drm_crtc *crtc,
|
||||
pstates[cnt].dpu_pstate = dpu_pstate;
|
||||
pstates[cnt].drm_pstate = pstate;
|
||||
pstates[cnt].stage = pstate->normalized_zpos;
|
||||
pstates[cnt].pipe_id = dpu_plane_pipe(plane);
|
||||
pstates[cnt].pipe_id = to_dpu_plane_state(pstate)->hw_sspp->idx;
|
||||
|
||||
dpu_pstate->needs_dirtyfb = needs_dirtyfb;
|
||||
|
||||
|
||||
@@ -1443,11 +1443,6 @@ static const struct drm_plane_helper_funcs dpu_plane_helper_funcs = {
|
||||
.atomic_update = dpu_plane_atomic_update,
|
||||
};
|
||||
|
||||
enum dpu_sspp dpu_plane_pipe(struct drm_plane *plane)
|
||||
{
|
||||
return plane ? to_dpu_plane(plane)->pipe : SSPP_NONE;
|
||||
}
|
||||
|
||||
/* initialize plane */
|
||||
struct drm_plane *dpu_plane_init(struct drm_device *dev,
|
||||
uint32_t pipe, enum drm_plane_type type,
|
||||
|
||||
@@ -59,13 +59,6 @@ struct dpu_multirect_plane_states {
|
||||
#define to_dpu_plane_state(x) \
|
||||
container_of(x, struct dpu_plane_state, base)
|
||||
|
||||
/**
|
||||
* dpu_plane_pipe - return sspp identifier for the given plane
|
||||
* @plane: Pointer to DRM plane object
|
||||
* Returns: sspp identifier of the given plane
|
||||
*/
|
||||
enum dpu_sspp dpu_plane_pipe(struct drm_plane *plane);
|
||||
|
||||
/**
|
||||
* dpu_plane_flush - final plane operations before commit flush
|
||||
* @plane: Pointer to drm plane structure
|
||||
|
||||
Reference in New Issue
Block a user