Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

gpu: ipu-v3 ipu-cpmem: Remove unused functions

ipu_cpmem_set_yuv_interleaved() was added in 2012 by
commit 0125f21b2baf ("staging: drm/imx: Add
ipu_cpmem_set_yuv_interleaved()")
but has remained unused.

ipu_cpmem_get_burstsize() was added in 2016 by
commit 03085911d7bb ("gpu: ipu-cpmem: Add ipu_cpmem_get_burstsize()")
but has remained unused.

Remove them.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20241226022752.219399-8-linux@treblig.org
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>

authored by

Dr. David Alan Gilbert and committed by
Dmitry Baryshkov
2800028d c687c314

-25
-23
drivers/gpu/ipu-v3/ipu-cpmem.c
··· 337 337 } 338 338 EXPORT_SYMBOL_GPL(ipu_cpmem_set_axi_id); 339 339 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 - 346 340 void ipu_cpmem_set_burstsize(struct ipuv3_channel *ch, int burstsize) 347 341 { 348 342 ipu_ch_param_write_field(ch, IPU_FIELD_NPB, burstsize - 1); ··· 445 451 return 0; 446 452 } 447 453 EXPORT_SYMBOL_GPL(ipu_cpmem_set_format_passthrough); 448 - 449 - void ipu_cpmem_set_yuv_interleaved(struct ipuv3_channel *ch, u32 pixel_format) 450 - { 451 - switch (pixel_format) { 452 - case V4L2_PIX_FMT_UYVY: 453 - ipu_ch_param_write_field(ch, IPU_FIELD_BPP, 3); /* bits/pixel */ 454 - ipu_ch_param_write_field(ch, IPU_FIELD_PFS, 0xA);/* pix fmt */ 455 - ipu_ch_param_write_field(ch, IPU_FIELD_NPB, 31);/* burst size */ 456 - break; 457 - case V4L2_PIX_FMT_YUYV: 458 - ipu_ch_param_write_field(ch, IPU_FIELD_BPP, 3); /* bits/pixel */ 459 - ipu_ch_param_write_field(ch, IPU_FIELD_PFS, 0x8);/* pix fmt */ 460 - ipu_ch_param_write_field(ch, IPU_FIELD_NPB, 31);/* burst size */ 461 - break; 462 - } 463 - } 464 - EXPORT_SYMBOL_GPL(ipu_cpmem_set_yuv_interleaved); 465 454 466 455 void ipu_cpmem_set_yuv_planar_full(struct ipuv3_channel *ch, 467 456 unsigned int uv_stride,
-2
include/video/imx-ipu-v3.h
··· 262 262 void ipu_cpmem_interlaced_scan(struct ipuv3_channel *ch, int stride, 263 263 u32 pixelformat); 264 264 void ipu_cpmem_set_axi_id(struct ipuv3_channel *ch, u32 id); 265 - int ipu_cpmem_get_burstsize(struct ipuv3_channel *ch); 266 265 void ipu_cpmem_set_burstsize(struct ipuv3_channel *ch, int burstsize); 267 266 void ipu_cpmem_set_block_mode(struct ipuv3_channel *ch); 268 267 void ipu_cpmem_set_rotation(struct ipuv3_channel *ch, ··· 269 270 int ipu_cpmem_set_format_rgb(struct ipuv3_channel *ch, 270 271 const struct ipu_rgb *rgb); 271 272 int ipu_cpmem_set_format_passthrough(struct ipuv3_channel *ch, int width); 272 - void ipu_cpmem_set_yuv_interleaved(struct ipuv3_channel *ch, u32 pixel_format); 273 273 void ipu_cpmem_set_yuv_planar_full(struct ipuv3_channel *ch, 274 274 unsigned int uv_stride, 275 275 unsigned int u_offset,