Pass the pointer to DP channel to ipu_dp_enable() and ipu_dp_disable(), to be more consistent with the other ipu-dp APIs.
Signed-off-by: Steve Longerbeam <steve_longerbeam at mentor.com> --- drivers/gpu/ipu-v3/ipu-dp.c | 10 ++++++---- drivers/staging/imx-drm/ipuv3-plane.c | 4 ++-- include/video/imx-ipu-v3.h | 4 ++-- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/ipu-v3/ipu-dp.c b/drivers/gpu/ipu-v3/ipu-dp.c index 626f738..89173e5 100644 --- a/drivers/gpu/ipu-v3/ipu-dp.c +++ b/drivers/gpu/ipu-v3/ipu-dp.c @@ -362,9 +362,10 @@ void ipu_dp_uninit_channel(struct ipu_dp *dp) } EXPORT_SYMBOL_GPL(ipu_dp_uninit_channel); -int ipu_dp_enable(struct ipu_soc *ipu) +int ipu_dp_enable(struct ipu_dp *dp) { - struct ipu_dp_priv *priv = ipu->dp_priv; + struct ipu_flow *flow = to_flow(dp); + struct ipu_dp_priv *priv = flow->priv; mutex_lock(&priv->mutex); @@ -431,9 +432,10 @@ void ipu_dp_disable_channel(struct ipu_dp *dp) } EXPORT_SYMBOL_GPL(ipu_dp_disable_channel); -void ipu_dp_disable(struct ipu_soc *ipu) +void ipu_dp_disable(struct ipu_dp *dp) { - struct ipu_dp_priv *priv = ipu->dp_priv; + struct ipu_flow *flow = to_flow(dp); + struct ipu_dp_priv *priv = flow->priv; mutex_lock(&priv->mutex); diff --git a/drivers/staging/imx-drm/ipuv3-plane.c b/drivers/staging/imx-drm/ipuv3-plane.c index 944962b..798125e 100644 --- a/drivers/staging/imx-drm/ipuv3-plane.c +++ b/drivers/staging/imx-drm/ipuv3-plane.c @@ -236,7 +236,7 @@ err_out: void ipu_plane_enable(struct ipu_plane *ipu_plane) { if (ipu_plane->dp) - ipu_dp_enable(ipu_plane->ipu); + ipu_dp_enable(ipu_plane->dp); ipu_dmfc_enable_channel(ipu_plane->dmfc); ipu_idmac_enable_channel(ipu_plane->ipu_ch); if (ipu_plane->dp) @@ -256,7 +256,7 @@ void ipu_plane_disable(struct ipu_plane *ipu_plane) ipu_idmac_disable_channel(ipu_plane->ipu_ch); ipu_dmfc_disable_channel(ipu_plane->dmfc); if (ipu_plane->dp) - ipu_dp_disable(ipu_plane->ipu); + ipu_dp_disable(ipu_plane->dp); } /* diff --git a/include/video/imx-ipu-v3.h b/include/video/imx-ipu-v3.h index 567ac41..1665a17 100644 --- a/include/video/imx-ipu-v3.h +++ b/include/video/imx-ipu-v3.h @@ -286,10 +286,10 @@ void ipu_dmfc_put(struct dmfc_channel *dmfc); struct ipu_dp *ipu_dp_get(struct ipu_soc *ipu, unsigned int flow); void ipu_dp_put(struct ipu_dp *); -int ipu_dp_enable(struct ipu_soc *ipu); +int ipu_dp_enable(struct ipu_dp *dp); int ipu_dp_enable_channel(struct ipu_dp *dp); void ipu_dp_disable_channel(struct ipu_dp *dp); -void ipu_dp_disable(struct ipu_soc *ipu); +void ipu_dp_disable(struct ipu_dp *dp); int ipu_dp_setup_channel(struct ipu_dp *dp, enum ipu_color_space in, enum ipu_color_space out); void ipu_dp_uninit_channel(struct ipu_dp *dp); -- 1.7.9.5