]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ENGR00291731 PXP: move pxp_irq_info definition from PXP dma to PXP device
authorFancy Fang <B47543@freescale.com>
Wed, 11 Dec 2013 10:48:44 +0000 (18:48 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 20 Aug 2014 08:06:48 +0000 (10:06 +0200)
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>
drivers/dma/pxp/pxp_device.c
include/linux/pxp_dma.h

index efe1eeb41e6e6141801904f3c8c7576cba82ae45..2c28294dc42a11a3db02bc7493fce698d92487f0 100644 (file)
@@ -37,7 +37,6 @@ static DEFINE_SPINLOCK(pxp_mem_lock);
 static DEFINE_SPINLOCK(pxp_chan_lock);
 static LIST_HEAD(head);
 static LIST_HEAD(list);
-static struct pxp_irq_info irq_info[NR_PXP_VIRT_CHANNEL];
 
 struct pxp_chan_handle {
        int chan_id;
@@ -55,6 +54,14 @@ struct pxp_chan_info {
        struct list_head list;
 };
 
+struct pxp_irq_info {
+       wait_queue_head_t waitq;
+       int irq_pending;
+       int hist_status;
+       spinlock_t lock;
+};
+static struct pxp_irq_info irq_info[NR_PXP_VIRT_CHANNEL];
+
 static int pxp_alloc_dma_buffer(struct pxp_mem_desc *mem)
 {
        mem->cpu_addr = (unsigned long)
index 613d89f143f93d643b70c50cbfe44f34a4643bc8..0961753726aa096ae7988604b48ac28927949250 100644 (file)
@@ -55,13 +55,6 @@ struct pxp_channel {
        char eof_name[16];      /* EOF IRQ name for request_irq()  */
 };
 
-struct pxp_irq_info {
-       wait_queue_head_t waitq;
-       int irq_pending;
-       int hist_status;
-       spinlock_t lock;
-};
-
 #define to_tx_desc(tx) container_of(tx, struct pxp_tx_desc, txd)
 #define to_pxp_channel(d) container_of(d, struct pxp_channel, dma_chan)