diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2015-04-25 11:23:06 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-05-01 08:17:02 -0300 |
commit | 79656225e3270fcf5937d46fe45f40dcbd1e4217 (patch) | |
tree | 09cbd4dcb791ebe15ba5ccdd71d15d05b69af490 /drivers/staging/media | |
parent | 6a11087be311216d712a1e984e599cebb1314ff9 (diff) |
[media] dt3155v4l: remove unused statistics
Remove struct dt3155_stats since it isn't used.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/staging/media')
-rw-r--r-- | drivers/staging/media/dt3155v4l/dt3155v4l.c | 3 | ||||
-rw-r--r-- | drivers/staging/media/dt3155v4l/dt3155v4l.h | 16 |
2 files changed, 0 insertions, 19 deletions
diff --git a/drivers/staging/media/dt3155v4l/dt3155v4l.c b/drivers/staging/media/dt3155v4l/dt3155v4l.c index 07cf8c3d29d5..5734ddef1fb0 100644 --- a/drivers/staging/media/dt3155v4l/dt3155v4l.c +++ b/drivers/staging/media/dt3155v4l/dt3155v4l.c @@ -304,11 +304,8 @@ static irqreturn_t dt3155_irq_handler_even(int irq, void *dev_id) ipd->field_count++; return IRQ_HANDLED; /* start of field irq */ } - if ((tmp & FLD_START) && (tmp & FLD_END_ODD)) - ipd->stats.start_before_end++; tmp = ioread32(ipd->regs + CSR1) & (FLD_CRPT_EVEN | FLD_CRPT_ODD); if (tmp) { - ipd->stats.corrupted_fields++; iowrite32(FIFO_EN | SRST | FLD_CRPT_ODD | FLD_CRPT_EVEN | FLD_DN_ODD | FLD_DN_EVEN | CAP_CONT_EVEN | CAP_CONT_ODD, diff --git a/drivers/staging/media/dt3155v4l/dt3155v4l.h b/drivers/staging/media/dt3155v4l/dt3155v4l.h index 5aeee75836e5..b4cb4120a4a1 100644 --- a/drivers/staging/media/dt3155v4l/dt3155v4l.h +++ b/drivers/staging/media/dt3155v4l/dt3155v4l.h @@ -153,21 +153,6 @@ #define DMA_STRIDE 640 #endif -/** - * struct dt3155_stats - statistics structure - * - * @free_bufs_empty: no free image buffers - * @corrupted_fields: corrupted fields - * @dma_map_failed: dma mapping failed - * @start_before_end: new started before old ended - */ -struct dt3155_stats { - int free_bufs_empty; - int corrupted_fields; - int dma_map_failed; - int start_before_end; -}; - /* per board private data structure */ /** * struct dt3155_priv - private data structure @@ -195,7 +180,6 @@ struct dt3155_priv { struct list_head dmaq; spinlock_t lock; unsigned int field_count; - struct dt3155_stats stats; void __iomem *regs; int users; u8 csr2, config; |