aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFancy Fang <B47543@freescale.com>2013-12-11 05:48:44 -0500
committerNitin Garg <nitin.garg@freescale.com>2014-04-16 09:47:28 -0400
commit8f422506afa60ae3a6b59037d4285ef50a6b4288 (patch)
tree405f420eac67130d17ee765b8d3d8a64a81e3b5b
parentf33d31279349cc94aa419f21b5a56f8b45882f12 (diff)
ENGR00291731 PXP: move pxp_irq_info definition from PXP dma to PXP device
struct pxp_irq_info is only used by PXP device driver, so it is unreasonable to define it in pxp_dma.h which will be included by EPDC, V4L2 PXP and PXP device driver. Signed-off-by: Fancy Fang <B47543@freescale.com>
-rw-r--r--drivers/dma/pxp/pxp_device.c9
-rw-r--r--include/linux/pxp_dma.h7
2 files changed, 8 insertions, 8 deletions
diff --git a/drivers/dma/pxp/pxp_device.c b/drivers/dma/pxp/pxp_device.c
index efe1eeb41e6e..2c28294dc42a 100644
--- a/drivers/dma/pxp/pxp_device.c
+++ b/drivers/dma/pxp/pxp_device.c
@@ -37,7 +37,6 @@ static DEFINE_SPINLOCK(pxp_mem_lock);
37static DEFINE_SPINLOCK(pxp_chan_lock); 37static DEFINE_SPINLOCK(pxp_chan_lock);
38static LIST_HEAD(head); 38static LIST_HEAD(head);
39static LIST_HEAD(list); 39static LIST_HEAD(list);
40static struct pxp_irq_info irq_info[NR_PXP_VIRT_CHANNEL];
41 40
42struct pxp_chan_handle { 41struct pxp_chan_handle {
43 int chan_id; 42 int chan_id;
@@ -55,6 +54,14 @@ struct pxp_chan_info {
55 struct list_head list; 54 struct list_head list;
56}; 55};
57 56
57struct pxp_irq_info {
58 wait_queue_head_t waitq;
59 int irq_pending;
60 int hist_status;
61 spinlock_t lock;
62};
63static struct pxp_irq_info irq_info[NR_PXP_VIRT_CHANNEL];
64
58static int pxp_alloc_dma_buffer(struct pxp_mem_desc *mem) 65static int pxp_alloc_dma_buffer(struct pxp_mem_desc *mem)
59{ 66{
60 mem->cpu_addr = (unsigned long) 67 mem->cpu_addr = (unsigned long)
diff --git a/include/linux/pxp_dma.h b/include/linux/pxp_dma.h
index 613d89f143f9..0961753726aa 100644
--- a/include/linux/pxp_dma.h
+++ b/include/linux/pxp_dma.h
@@ -55,13 +55,6 @@ struct pxp_channel {
55 char eof_name[16]; /* EOF IRQ name for request_irq() */ 55 char eof_name[16]; /* EOF IRQ name for request_irq() */
56}; 56};
57 57
58struct pxp_irq_info {
59 wait_queue_head_t waitq;
60 int irq_pending;
61 int hist_status;
62 spinlock_t lock;
63};
64
65#define to_tx_desc(tx) container_of(tx, struct pxp_tx_desc, txd) 58#define to_tx_desc(tx) container_of(tx, struct pxp_tx_desc, txd)
66#define to_pxp_channel(d) container_of(d, struct pxp_channel, dma_chan) 59#define to_pxp_channel(d) container_of(d, struct pxp_channel, dma_chan)
67 60