media: imx: Remove unused functions
Neither imx_media_mbus_fmt_to_ipu_image nor imx_media_ipu_image_to_mbus_fmt were used anywhere. Signed-off-by: Dorota Czaplejewicz <dorota.czaplejewicz@puri.sm> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
parent
6aa6e70cdb
commit
0bbaec386c
@ -569,48 +569,6 @@ int imx_media_mbus_fmt_to_pix_fmt(struct v4l2_pix_format *pix,
|
|||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(imx_media_mbus_fmt_to_pix_fmt);
|
EXPORT_SYMBOL_GPL(imx_media_mbus_fmt_to_pix_fmt);
|
||||||
|
|
||||||
int imx_media_mbus_fmt_to_ipu_image(struct ipu_image *image,
|
|
||||||
const struct v4l2_mbus_framefmt *mbus)
|
|
||||||
{
|
|
||||||
int ret;
|
|
||||||
|
|
||||||
memset(image, 0, sizeof(*image));
|
|
||||||
|
|
||||||
ret = imx_media_mbus_fmt_to_pix_fmt(&image->pix, mbus, NULL);
|
|
||||||
if (ret)
|
|
||||||
return ret;
|
|
||||||
|
|
||||||
image->rect.width = mbus->width;
|
|
||||||
image->rect.height = mbus->height;
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
EXPORT_SYMBOL_GPL(imx_media_mbus_fmt_to_ipu_image);
|
|
||||||
|
|
||||||
int imx_media_ipu_image_to_mbus_fmt(struct v4l2_mbus_framefmt *mbus,
|
|
||||||
const struct ipu_image *image)
|
|
||||||
{
|
|
||||||
const struct imx_media_pixfmt *fmt;
|
|
||||||
|
|
||||||
fmt = imx_media_find_pixel_format(image->pix.pixelformat,
|
|
||||||
PIXFMT_SEL_ANY);
|
|
||||||
if (!fmt || !fmt->codes || !fmt->codes[0])
|
|
||||||
return -EINVAL;
|
|
||||||
|
|
||||||
memset(mbus, 0, sizeof(*mbus));
|
|
||||||
mbus->width = image->pix.width;
|
|
||||||
mbus->height = image->pix.height;
|
|
||||||
mbus->code = fmt->codes[0];
|
|
||||||
mbus->field = image->pix.field;
|
|
||||||
mbus->colorspace = image->pix.colorspace;
|
|
||||||
mbus->xfer_func = image->pix.xfer_func;
|
|
||||||
mbus->ycbcr_enc = image->pix.ycbcr_enc;
|
|
||||||
mbus->quantization = image->pix.quantization;
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
EXPORT_SYMBOL_GPL(imx_media_ipu_image_to_mbus_fmt);
|
|
||||||
|
|
||||||
void imx_media_free_dma_buf(struct device *dev,
|
void imx_media_free_dma_buf(struct device *dev,
|
||||||
struct imx_media_dma_buf *buf)
|
struct imx_media_dma_buf *buf)
|
||||||
{
|
{
|
||||||
|
@ -199,10 +199,6 @@ void imx_media_try_colorimetry(struct v4l2_mbus_framefmt *tryfmt,
|
|||||||
int imx_media_mbus_fmt_to_pix_fmt(struct v4l2_pix_format *pix,
|
int imx_media_mbus_fmt_to_pix_fmt(struct v4l2_pix_format *pix,
|
||||||
const struct v4l2_mbus_framefmt *mbus,
|
const struct v4l2_mbus_framefmt *mbus,
|
||||||
const struct imx_media_pixfmt *cc);
|
const struct imx_media_pixfmt *cc);
|
||||||
int imx_media_mbus_fmt_to_ipu_image(struct ipu_image *image,
|
|
||||||
const struct v4l2_mbus_framefmt *mbus);
|
|
||||||
int imx_media_ipu_image_to_mbus_fmt(struct v4l2_mbus_framefmt *mbus,
|
|
||||||
const struct ipu_image *image);
|
|
||||||
void imx_media_grp_id_to_sd_name(char *sd_name, int sz,
|
void imx_media_grp_id_to_sd_name(char *sd_name, int sz,
|
||||||
u32 grp_id, int ipu_id);
|
u32 grp_id, int ipu_id);
|
||||||
struct v4l2_subdev *
|
struct v4l2_subdev *
|
||||||
|
Loading…
x
Reference in New Issue
Block a user