Skip to content
Snippets Groups Projects
Commit cc4454fc authored by Jason Liu's avatar Jason Liu Committed by Leonard Crestez
Browse files

MLK-16688 driver: media: mxc_jpeg: Remove the unused function to kill the build warnnings


The patch fixes the following build warnnings by removing unused function:

drivers/media/platform/imx8/mxc-jpeg.c:228:13: warning: ‘print_output’ defined
but not used [-Wunused-function]
 static void print_output(void *addr)
             ^~~~~~~~~~~~

This patch also does the minor clean up by removing some commented-out code

Signed-off-by: default avatarJason Liu <jason.hui.liu@nxp.com>
Acked-by: default avatarFugang Duan <fugang.duan@nxp.com>
parent 9b398e09
No related branches found
No related tags found
No related merge requests found
...@@ -225,17 +225,6 @@ static int enum_fmt(struct mxc_jpeg_fmt *mxc_formats, int n, ...@@ -225,17 +225,6 @@ static int enum_fmt(struct mxc_jpeg_fmt *mxc_formats, int n,
return 0; return 0;
} }
static void print_output(void *addr)
{
int i;
for (i = 0x0; i < 0x200; i += 4) {
printk(KERN_DEBUG "%02x %02x %02x %02x\n", ((char *)addr)[i],
((char *)addr)[i+1], ((char *)addr)[i+2],
((char *)addr)[i+3]);
}
}
void mxc_jpeg_addrs(struct mxc_jpeg_desc *desc, struct vb2_buffer *b_base0_buf, void mxc_jpeg_addrs(struct mxc_jpeg_desc *desc, struct vb2_buffer *b_base0_buf,
struct vb2_buffer *bufbase_buf, int offset) struct vb2_buffer *bufbase_buf, int offset)
{ {
...@@ -358,9 +347,6 @@ static void mxc_jpeg_device_run(void *priv) ...@@ -358,9 +347,6 @@ static void mxc_jpeg_device_run(void *priv)
mxc_jpeg_set_desc(dma_handle, jpeg->base_reg, slot); mxc_jpeg_set_desc(dma_handle, jpeg->base_reg, slot);
mxc_jpeg_go(jpeg->base_reg); mxc_jpeg_go(jpeg->base_reg);
} }
//print_descriptor_info(desc);
////print_output(testaddro);
//print_cast_decoder_info(jpeg->base_reg);
spin_unlock_irqrestore(&ctx->mxc_jpeg->hw_lock, flags); spin_unlock_irqrestore(&ctx->mxc_jpeg->hw_lock, flags);
} }
static int mxc_jpeg_job_ready(void *priv) static int mxc_jpeg_job_ready(void *priv)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment