summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/msm/mdp/mdp5/mdp5_plane.c
diff options
context:
space:
mode:
authorArchit Taneja <architt@codeaurora.org>2017-10-27 16:27:29 +0530
committerRob Clark <robdclark@gmail.com>2017-10-28 14:02:57 -0400
commit9866601e67adc5589302d7dfe12d8325d5b894f8 (patch)
tree3e3aeca996d885345ddc5d4e8f1afd99da4e16c9 /drivers/gpu/drm/msm/mdp/mdp5/mdp5_plane.c
parentba49f0623dfd7307eb55b9e184389b513f1b3a2b (diff)
downloadop-kernel-dev-9866601e67adc5589302d7dfe12d8325d5b894f8.zip
op-kernel-dev-9866601e67adc5589302d7dfe12d8325d5b894f8.tar.gz
drm/msm/mdp5: Prepare mdp5_pipe_assign for some rework
mdp5_pipe_assign currently returns the hwpipe pointer for the drm_plane. Return it indirectly by setting a pointer passed as an argument. This is needed because we want the func to find out the right hwpipe too. Signed-off-by: Archit Taneja <architt@codeaurora.org> Signed-off-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/msm/mdp/mdp5/mdp5_plane.c')
-rw-r--r--drivers/gpu/drm/msm/mdp/mdp5/mdp5_plane.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/gpu/drm/msm/mdp/mdp5/mdp5_plane.c b/drivers/gpu/drm/msm/mdp/mdp5/mdp5_plane.c
index 5628721..aec115e 100644
--- a/drivers/gpu/drm/msm/mdp/mdp5/mdp5_plane.c
+++ b/drivers/gpu/drm/msm/mdp/mdp5/mdp5_plane.c
@@ -394,21 +394,21 @@ static int mdp5_plane_atomic_check_with_state(struct drm_crtc_state *crtc_state,
struct mdp5_hw_pipe *old_right_hwpipe =
mdp5_state->r_hwpipe;
- mdp5_state->hwpipe = mdp5_pipe_assign(state->state,
- plane, caps, blkcfg);
- if (IS_ERR(mdp5_state->hwpipe)) {
+ ret = mdp5_pipe_assign(state->state, plane, caps,
+ blkcfg, &mdp5_state->hwpipe);
+ if (ret) {
DBG("%s: failed to assign hwpipe!", plane->name);
- return PTR_ERR(mdp5_state->hwpipe);
+ return ret;
}
if (need_right_hwpipe) {
- mdp5_state->r_hwpipe =
- mdp5_pipe_assign(state->state, plane,
- caps, blkcfg);
- if (IS_ERR(mdp5_state->r_hwpipe)) {
+ ret = mdp5_pipe_assign(state->state, plane,
+ caps, blkcfg,
+ &mdp5_state->r_hwpipe);
+ if (ret) {
DBG("%s: failed to assign right hwpipe",
plane->name);
- return PTR_ERR(mdp5_state->r_hwpipe);
+ return ret;
}
} else {
/*
OpenPOWER on IntegriCloud