From 7e62f51f242829f8e619abba35946caf7fc2257d Mon Sep 17 00:00:00 2001 From: Fancy Fang Date: Thu, 19 Dec 2013 18:32:42 +0800 Subject: [PATCH] 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 --- drivers/dma/pxp/pxp_device.c | 13 ------------- include/linux/pxp_device.h | 13 +++++++++++++ 2 files changed, 13 insertions(+), 13 deletions(-) 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 -- 2.39.5