Neither ipu_image_convert_sync() nor ipu_image_convert() is used or call
from anywhere. Remove this unused code.

Signed-off-by: Marek Vasut <ma...@denx.de>
---
Cc: Daniel Vetter <dan...@ffwll.ch>
Cc: David Airlie <airl...@gmail.com>
Cc: Fabio Estevam <feste...@gmail.com>
Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org>
Cc: Helge Deller <del...@gmx.de>
Cc: Mauro Carvalho Chehab <mche...@kernel.org>
Cc: Pengutronix Kernel Team <ker...@pengutronix.de>
Cc: Philipp Zabel <p.za...@pengutronix.de>
Cc: Sascha Hauer <s.ha...@pengutronix.de>
Cc: Shawn Guo <shawn...@kernel.org>
Cc: Steve Longerbeam <slongerb...@gmail.com>
Cc: dri-devel@lists.freedesktop.org
Cc: i...@lists.linux.dev
Cc: linux-arm-ker...@lists.infradead.org
Cc: linux-fb...@vger.kernel.org
Cc: linux-me...@vger.kernel.org
Cc: linux-stag...@lists.linux.dev
---
 drivers/gpu/ipu-v3/ipu-image-convert.c | 76 --------------------------
 include/video/imx-ipu-image-convert.h  | 46 ----------------
 2 files changed, 122 deletions(-)

diff --git a/drivers/gpu/ipu-v3/ipu-image-convert.c 
b/drivers/gpu/ipu-v3/ipu-image-convert.c
index 841316582ea9d..c87866253eee9 100644
--- a/drivers/gpu/ipu-v3/ipu-image-convert.c
+++ b/drivers/gpu/ipu-v3/ipu-image-convert.c
@@ -2395,82 +2395,6 @@ void ipu_image_convert_unprepare(struct 
ipu_image_convert_ctx *ctx)
 }
 EXPORT_SYMBOL_GPL(ipu_image_convert_unprepare);
 
-/*
- * "Canned" asynchronous single image conversion. Allocates and returns
- * a new conversion run.  On successful return the caller must free the
- * run and call ipu_image_convert_unprepare() after conversion completes.
- */
-struct ipu_image_convert_run *
-ipu_image_convert(struct ipu_soc *ipu, enum ipu_ic_task ic_task,
-                 struct ipu_image *in, struct ipu_image *out,
-                 enum ipu_rotate_mode rot_mode,
-                 ipu_image_convert_cb_t complete,
-                 void *complete_context)
-{
-       struct ipu_image_convert_ctx *ctx;
-       struct ipu_image_convert_run *run;
-       int ret;
-
-       ctx = ipu_image_convert_prepare(ipu, ic_task, in, out, rot_mode,
-                                       complete, complete_context);
-       if (IS_ERR(ctx))
-               return ERR_CAST(ctx);
-
-       run = kzalloc(sizeof(*run), GFP_KERNEL);
-       if (!run) {
-               ipu_image_convert_unprepare(ctx);
-               return ERR_PTR(-ENOMEM);
-       }
-
-       run->ctx = ctx;
-       run->in_phys = in->phys0;
-       run->out_phys = out->phys0;
-
-       ret = ipu_image_convert_queue(run);
-       if (ret) {
-               ipu_image_convert_unprepare(ctx);
-               kfree(run);
-               return ERR_PTR(ret);
-       }
-
-       return run;
-}
-EXPORT_SYMBOL_GPL(ipu_image_convert);
-
-/* "Canned" synchronous single image conversion */
-static void image_convert_sync_complete(struct ipu_image_convert_run *run,
-                                       void *data)
-{
-       struct completion *comp = data;
-
-       complete(comp);
-}
-
-int ipu_image_convert_sync(struct ipu_soc *ipu, enum ipu_ic_task ic_task,
-                          struct ipu_image *in, struct ipu_image *out,
-                          enum ipu_rotate_mode rot_mode)
-{
-       struct ipu_image_convert_run *run;
-       struct completion comp;
-       int ret;
-
-       init_completion(&comp);
-
-       run = ipu_image_convert(ipu, ic_task, in, out, rot_mode,
-                               image_convert_sync_complete, &comp);
-       if (IS_ERR(run))
-               return PTR_ERR(run);
-
-       ret = wait_for_completion_timeout(&comp, msecs_to_jiffies(10000));
-       ret = (ret == 0) ? -ETIMEDOUT : 0;
-
-       ipu_image_convert_unprepare(run->ctx);
-       kfree(run);
-
-       return ret;
-}
-EXPORT_SYMBOL_GPL(ipu_image_convert_sync);
-
 int ipu_image_convert_init(struct ipu_soc *ipu, struct device *dev)
 {
        struct ipu_image_convert_priv *priv;
diff --git a/include/video/imx-ipu-image-convert.h 
b/include/video/imx-ipu-image-convert.h
index 3c71b8b94b33a..39906b0cbf2d8 100644
--- a/include/video/imx-ipu-image-convert.h
+++ b/include/video/imx-ipu-image-convert.h
@@ -149,50 +149,4 @@ int ipu_image_convert_queue(struct ipu_image_convert_run 
*run);
  */
 void ipu_image_convert_abort(struct ipu_image_convert_ctx *ctx);
 
-/**
- * ipu_image_convert() - asynchronous image conversion request
- *
- * @ipu:       the IPU handle to use for the conversion
- * @ic_task:   the IC task to use for the conversion
- * @in:                input image format
- * @out:       output image format
- * @rot_mode:  rotation mode
- * @complete:  run completion callback
- * @complete_context:  a context pointer for the completion callback
- *
- * Request a single image conversion. Returns the run that has been queued.
- * A conversion context is automatically created and is available in run->ctx.
- * As with ipu_image_convert_prepare(), the input/output formats and rotation
- * mode must already meet IPU retrictions.
- *
- * On successful return the caller can queue more run requests if needed, using
- * the prepared context in run->ctx. The caller is responsible for unpreparing
- * the context when no more conversion requests are needed.
- */
-struct ipu_image_convert_run *
-ipu_image_convert(struct ipu_soc *ipu, enum ipu_ic_task ic_task,
-                 struct ipu_image *in, struct ipu_image *out,
-                 enum ipu_rotate_mode rot_mode,
-                 ipu_image_convert_cb_t complete,
-                 void *complete_context);
-
-/**
- * ipu_image_convert_sync() - synchronous single image conversion request
- *
- * @ipu:       the IPU handle to use for the conversion
- * @ic_task:   the IC task to use for the conversion
- * @in:                input image format
- * @out:       output image format
- * @rot_mode:  rotation mode
- *
- * Carry out a single image conversion. Returns when the conversion
- * completes. The input/output formats and rotation mode must already
- * meet IPU retrictions. The created context is automatically unprepared
- * and the run freed on return.
- */
-int ipu_image_convert_sync(struct ipu_soc *ipu, enum ipu_ic_task ic_task,
-                          struct ipu_image *in, struct ipu_image *out,
-                          enum ipu_rotate_mode rot_mode);
-
-
 #endif /* __IMX_IPU_IMAGE_CONVERT_H__ */
-- 
2.43.0

Reply via email to