Commit c8c7c44b authored by Rickard Strandqvist's avatar Rickard Strandqvist Committed by Mauro Carvalho Chehab

[media] s5p-jpeg: Remove some unused functions

Removes some functions that are not used anywhere:
s5p_jpeg_input_raw_y16() s5p_jpeg_timer_disable() s5p_jpeg_timer_enable().

This was partially found by using a static code analysis program called
cppcheck.
Signed-off-by: default avatarRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: default avatarSylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 12b05566
......@@ -51,18 +51,6 @@ void s5p_jpeg_input_raw_mode(void __iomem *regs, unsigned long mode)
writel(reg, regs + S5P_JPGCMOD);
}
void s5p_jpeg_input_raw_y16(void __iomem *regs, bool y16)
{
unsigned long reg;
reg = readl(regs + S5P_JPGCMOD);
if (y16)
reg |= S5P_MODE_Y16;
else
reg &= ~S5P_MODE_Y16_MASK;
writel(reg, regs + S5P_JPGCMOD);
}
void s5p_jpeg_proc_mode(void __iomem *regs, unsigned long mode)
{
unsigned long reg, m;
......@@ -208,26 +196,6 @@ void s5p_jpeg_final_mcu_num_int_enable(void __iomem *regs, bool enbl)
writel(reg, regs + S5P_JPGINTSE);
}
void s5p_jpeg_timer_enable(void __iomem *regs, unsigned long val)
{
unsigned long reg;
reg = readl(regs + S5P_JPG_TIMER_SE);
reg |= S5P_TIMER_INT_EN;
reg &= ~S5P_TIMER_INIT_MASK;
reg |= val & S5P_TIMER_INIT_MASK;
writel(reg, regs + S5P_JPG_TIMER_SE);
}
void s5p_jpeg_timer_disable(void __iomem *regs)
{
unsigned long reg;
reg = readl(regs + S5P_JPG_TIMER_SE);
reg &= ~S5P_TIMER_INT_EN_MASK;
writel(reg, regs + S5P_JPG_TIMER_SE);
}
int s5p_jpeg_timer_stat(void __iomem *regs)
{
return (int)((readl(regs + S5P_JPG_TIMER_ST) & S5P_TIMER_INT_STAT_MASK)
......
......@@ -29,7 +29,6 @@
void s5p_jpeg_reset(void __iomem *regs);
void s5p_jpeg_poweron(void __iomem *regs);
void s5p_jpeg_input_raw_mode(void __iomem *regs, unsigned long mode);
void s5p_jpeg_input_raw_y16(void __iomem *regs, bool y16);
void s5p_jpeg_proc_mode(void __iomem *regs, unsigned long mode);
void s5p_jpeg_subsampling_mode(void __iomem *regs, unsigned int mode);
unsigned int s5p_jpeg_get_subsampling_mode(void __iomem *regs);
......@@ -42,8 +41,6 @@ void s5p_jpeg_x(void __iomem *regs, unsigned int x);
void s5p_jpeg_rst_int_enable(void __iomem *regs, bool enable);
void s5p_jpeg_data_num_int_enable(void __iomem *regs, bool enable);
void s5p_jpeg_final_mcu_num_int_enable(void __iomem *regs, bool enbl);
void s5p_jpeg_timer_enable(void __iomem *regs, unsigned long val);
void s5p_jpeg_timer_disable(void __iomem *regs);
int s5p_jpeg_timer_stat(void __iomem *regs);
void s5p_jpeg_clear_timer_stat(void __iomem *regs);
void s5p_jpeg_enc_stream_int(void __iomem *regs, unsigned long size);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment