@@ -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);
@@ -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);
}
/*
@@ -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);
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@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(-)