From: Fancy Fang Date: Thu, 19 Dec 2013 10:32:42 +0000 (+0800) Subject: ENGR00292816 PXP: move two struct definitions to pxp_device.h X-Git-Tag: KARO-TX6-2014-07-10~95 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=7e62f51f242829f8e619abba35946caf7fc2257d;p=karo-tx-linux.git ENGR00292816 PXP: move two struct definitions to pxp_device.h 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 --- diff --git a/drivers/dma/pxp/pxp_device.c b/drivers/dma/pxp/pxp_device.c index 7d0ac4006f71..2695e6ed4fdb 100644 --- a/drivers/dma/pxp/pxp_device.c +++ b/drivers/dma/pxp/pxp_device.c @@ -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]; diff --git a/include/linux/pxp_device.h b/include/linux/pxp_device.h index 34d36bd48413..38120d8c46a0 100644 --- a/include/linux/pxp_device.h +++ b/include/linux/pxp_device.h @@ -21,4 +21,17 @@ #include +/* 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