]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
media: b2c2: Remove unused functions
authorDr. David Alan Gilbert <linux@treblig.org>
Thu, 14 Nov 2024 02:06:36 +0000 (02:06 +0000)
committerHans Verkuil <hverkuil@xs4all.nl>
Mon, 2 Dec 2024 13:05:24 +0000 (14:05 +0100)
flexcop_dma_control_size_irq() last use was removed in 2005 by
commit 64221be7b900 ("[PATCH] dvb: flexcop: woraround irq stop problem")

flexcop_dump_reg() last use was removed in 2009 by
commit 382c5546d618 ("V4L/DVB (10694): [PATCH] software IRQ watchdog for
Flexcop B2C2 DVB PCI cards")

Remove them.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/common/b2c2/flexcop-common.h
drivers/media/common/b2c2/flexcop-misc.c
drivers/media/pci/b2c2/flexcop-dma.c

index f944c59cf4955dc2edb98fcd2b79c01f3e1f69a7..a468ea7e77a140340e7e7aeba1f98f3afcf7b985 100644 (file)
@@ -125,8 +125,6 @@ void flexcop_dma_free(struct flexcop_dma *dma);
 
 int flexcop_dma_control_timer_irq(struct flexcop_device *fc,
                flexcop_dma_index_t no, int onoff);
-int flexcop_dma_control_size_irq(struct flexcop_device *fc,
-               flexcop_dma_index_t no, int onoff);
 int flexcop_dma_config(struct flexcop_device *fc, struct flexcop_dma *dma,
                flexcop_dma_index_t dma_idx);
 int flexcop_dma_xfer_control(struct flexcop_device *fc,
@@ -170,8 +168,6 @@ int flexcop_sram_init(struct flexcop_device *fc);
 void flexcop_determine_revision(struct flexcop_device *fc);
 void flexcop_device_name(struct flexcop_device *fc,
                const char *prefix, const char *suffix);
-void flexcop_dump_reg(struct flexcop_device *fc,
-               flexcop_ibi_register reg, int num);
 
 /* from flexcop-hw-filter.c */
 int flexcop_pid_feed_control(struct flexcop_device *fc,
index 83d01d3a81cc1c9d07867531acccb5b2059267b0..251c4f731ed12d364754e7e99fd1e4bca1292596 100644 (file)
@@ -70,16 +70,3 @@ void flexcop_device_name(struct flexcop_device *fc,
                        flexcop_bus_names[fc->bus_type],
                        flexcop_revision_names[fc->rev], suffix);
 }
-
-void flexcop_dump_reg(struct flexcop_device *fc,
-               flexcop_ibi_register reg, int num)
-{
-       flexcop_ibi_value v;
-       int i;
-       for (i = 0; i < num; i++) {
-               v = fc->read_ibi_reg(fc, reg+4*i);
-               deb_rdump("0x%03x: %08x, ", reg+4*i, v.raw);
-       }
-       deb_rdump("\n");
-}
-EXPORT_SYMBOL(flexcop_dump_reg);
index ff8058568240a4f24c46b9b5655596fd276c8131..2ef97be4dc54cca60b9e393b598a438fae0467bf 100644 (file)
@@ -123,23 +123,6 @@ static int flexcop_dma_remap(struct flexcop_device *fc,
        return 0;
 }
 
-int flexcop_dma_control_size_irq(struct flexcop_device *fc,
-               flexcop_dma_index_t no,
-               int onoff)
-{
-       flexcop_ibi_value v = fc->read_ibi_reg(fc, ctrl_208);
-
-       if (no & FC_DMA_1)
-               v.ctrl_208.DMA1_IRQ_Enable_sig = onoff;
-
-       if (no & FC_DMA_2)
-               v.ctrl_208.DMA2_IRQ_Enable_sig = onoff;
-
-       fc->write_ibi_reg(fc, ctrl_208, v);
-       return 0;
-}
-EXPORT_SYMBOL(flexcop_dma_control_size_irq);
-
 int flexcop_dma_control_timer_irq(struct flexcop_device *fc,
                flexcop_dma_index_t no,
                int onoff)