Skip to content

Commit 2800028

Browse files
Dr. David Alan Gilbertlumag
authored andcommitted
gpu: ipu-v3 ipu-cpmem: Remove unused functions
ipu_cpmem_set_yuv_interleaved() was added in 2012 by commit 0125f21 ("staging: drm/imx: Add ipu_cpmem_set_yuv_interleaved()") but has remained unused. ipu_cpmem_get_burstsize() was added in 2016 by commit 0308591 ("gpu: ipu-cpmem: Add ipu_cpmem_get_burstsize()") but has remained unused. Remove them. Signed-off-by: Dr. David Alan Gilbert <[email protected]> Reviewed-by: Dmitry Baryshkov <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Signed-off-by: Dmitry Baryshkov <[email protected]>
1 parent c687c31 commit 2800028

File tree

2 files changed

+0
-25
lines changed

2 files changed

+0
-25
lines changed

drivers/gpu/ipu-v3/ipu-cpmem.c

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -337,12 +337,6 @@ void ipu_cpmem_set_axi_id(struct ipuv3_channel *ch, u32 id)
337337
}
338338
EXPORT_SYMBOL_GPL(ipu_cpmem_set_axi_id);
339339

340-
int ipu_cpmem_get_burstsize(struct ipuv3_channel *ch)
341-
{
342-
return ipu_ch_param_read_field(ch, IPU_FIELD_NPB) + 1;
343-
}
344-
EXPORT_SYMBOL_GPL(ipu_cpmem_get_burstsize);
345-
346340
void ipu_cpmem_set_burstsize(struct ipuv3_channel *ch, int burstsize)
347341
{
348342
ipu_ch_param_write_field(ch, IPU_FIELD_NPB, burstsize - 1);
@@ -452,23 +446,6 @@ int ipu_cpmem_set_format_passthrough(struct ipuv3_channel *ch, int width)
452446
}
453447
EXPORT_SYMBOL_GPL(ipu_cpmem_set_format_passthrough);
454448

455-
void ipu_cpmem_set_yuv_interleaved(struct ipuv3_channel *ch, u32 pixel_format)
456-
{
457-
switch (pixel_format) {
458-
case V4L2_PIX_FMT_UYVY:
459-
ipu_ch_param_write_field(ch, IPU_FIELD_BPP, 3); /* bits/pixel */
460-
ipu_ch_param_write_field(ch, IPU_FIELD_PFS, 0xA);/* pix fmt */
461-
ipu_ch_param_write_field(ch, IPU_FIELD_NPB, 31);/* burst size */
462-
break;
463-
case V4L2_PIX_FMT_YUYV:
464-
ipu_ch_param_write_field(ch, IPU_FIELD_BPP, 3); /* bits/pixel */
465-
ipu_ch_param_write_field(ch, IPU_FIELD_PFS, 0x8);/* pix fmt */
466-
ipu_ch_param_write_field(ch, IPU_FIELD_NPB, 31);/* burst size */
467-
break;
468-
}
469-
}
470-
EXPORT_SYMBOL_GPL(ipu_cpmem_set_yuv_interleaved);
471-
472449
void ipu_cpmem_set_yuv_planar_full(struct ipuv3_channel *ch,
473450
unsigned int uv_stride,
474451
unsigned int u_offset, unsigned int v_offset)

include/video/imx-ipu-v3.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,15 +262,13 @@ void ipu_cpmem_set_uv_offset(struct ipuv3_channel *ch, u32 u_off, u32 v_off);
262262
void ipu_cpmem_interlaced_scan(struct ipuv3_channel *ch, int stride,
263263
u32 pixelformat);
264264
void ipu_cpmem_set_axi_id(struct ipuv3_channel *ch, u32 id);
265-
int ipu_cpmem_get_burstsize(struct ipuv3_channel *ch);
266265
void ipu_cpmem_set_burstsize(struct ipuv3_channel *ch, int burstsize);
267266
void ipu_cpmem_set_block_mode(struct ipuv3_channel *ch);
268267
void ipu_cpmem_set_rotation(struct ipuv3_channel *ch,
269268
enum ipu_rotate_mode rot);
270269
int ipu_cpmem_set_format_rgb(struct ipuv3_channel *ch,
271270
const struct ipu_rgb *rgb);
272271
int ipu_cpmem_set_format_passthrough(struct ipuv3_channel *ch, int width);
273-
void ipu_cpmem_set_yuv_interleaved(struct ipuv3_channel *ch, u32 pixel_format);
274272
void ipu_cpmem_set_yuv_planar_full(struct ipuv3_channel *ch,
275273
unsigned int uv_stride,
276274
unsigned int u_offset,

0 commit comments

Comments
 (0)