drm/msm/mdp5: Create mdp5_hwpipe_mode_set
authorArchit Taneja <architt@codeaurora.org>
Thu, 23 Mar 2017 10:28:09 +0000 (15:58 +0530)
committerRob Clark <robdclark@gmail.com>
Sat, 8 Apr 2017 10:59:35 +0000 (06:59 -0400)
commit821be43ff2424b13bc6152360eb6d5bacfbf8530
treeb37e5387fc715b1d7042bd3d2906afe244f22de0
parentb7621b2a081c2ac2c1c54070f6e88f774fe4b6b1
drm/msm/mdp5: Create mdp5_hwpipe_mode_set

Refactor mdp5_plane_mode_set to call mdp5_hwpipe_mode_set. The latter
func takes in only the hwpipe and the parameters that need to be
programmed into the hwpipe registers. All the code that calculates these
parameters is left as is in mdp5_plane_mode_set.

In the future, when we let drm_plane be comprised of 2 hwpipes, this func
allow us to configure each pipe without adding redundant code.

Signed-off-by: Archit Taneja <architt@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/mdp/mdp5/mdp5_plane.c