]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00292816 PXP: move two struct definitions to pxp_device.h
authorFancy Fang <B47543@freescale.com>
Thu, 19 Dec 2013 10:32:42 +0000 (18:32 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Mon, 16 Jun 2014 16:09:20 +0000 (18:09 +0200)
Move two struct definitions defined in pxp_device.c to pxp_device.h.
Now the pxp_device.h has been created for PXP device driver. So all
the type definition should stay in header file not c source file.

Signed-off-by: Fancy Fang <B47543@freescale.com>
drivers/dma/pxp/pxp_device.c
include/linux/pxp_device.h

index 7d0ac4006f714de861456fc02ed57fee31296ef7..2695e6ed4fdb7843decad491a771b20eecd52205 100644 (file)
@@ -36,19 +36,6 @@ static atomic_t open_count = ATOMIC_INIT(0);
 static DEFINE_SPINLOCK(pxp_mem_lock);
 static LIST_HEAD(head);
 
-/* To track the allocated memory buffer */
-struct memalloc_record {
-       struct list_head list;
-       struct pxp_mem_desc mem;
-};
-
-struct pxp_irq_info {
-       wait_queue_head_t waitq;
-       int irq_pending;
-       int hist_status;
-       spinlock_t lock;
-};
-
 static struct dma_chan *dma_chans[NR_PXP_VIRT_CHANNEL];
 static struct pxp_irq_info irq_info[NR_PXP_VIRT_CHANNEL];
 
index 34d36bd484134f9ea950e15eb3f40eace1f3ddfd..38120d8c46a0b295be011fb9dbb9e1f9abfa0f0e 100644 (file)
 
 #include <uapi/linux/pxp_device.h>
 
+/* To track the allocated memory buffer */
+struct memalloc_record {
+       struct list_head list;
+       struct pxp_mem_desc mem;
+};
+
+struct pxp_irq_info {
+       wait_queue_head_t waitq;
+       int irq_pending;
+       int hist_status;
+       spinlock_t lock;
+};
+
 #endif