[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: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:
Родитель
12b055662a
Коммит
c8c7c44b7c
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче