aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma
diff options
context:
space:
mode:
authorTomoya MORINAGA <tomoya-linux@dsn.okisemi.com>2011-05-09 03:09:36 -0400
committerVinod Koul <vinod.koul@intel.com>2011-05-09 07:42:23 -0400
commit08645fdc7bab4564f7dfd07525da8a1761f8f106 (patch)
tree5b65ccb6255b2eac854fa6485a839f685084a1fe /drivers/dma
parentc8fcba600c46c5d7667ec230b1d9ce3ce5859f9c (diff)
pch_dma: modify for checkpatch
Fix checkpatch warnings. Signed-off-by: Tomoya MORINAGA <tomoya-linux@dsn.okisemi.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma')
-rw-r--r--drivers/dma/pch_dma.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/dma/pch_dma.c b/drivers/dma/pch_dma.c
index d28c47a42f14..afd6fba08a6f 100644
--- a/drivers/dma/pch_dma.c
+++ b/drivers/dma/pch_dma.c
@@ -138,7 +138,8 @@ struct pch_dma {
138#define dma_writel(pd, name, val) \ 138#define dma_writel(pd, name, val) \
139 writel((val), (pd)->membase + PCH_DMA_##name) 139 writel((val), (pd)->membase + PCH_DMA_##name)
140 140
141static inline struct pch_dma_desc *to_pd_desc(struct dma_async_tx_descriptor *txd) 141static inline
142struct pch_dma_desc *to_pd_desc(struct dma_async_tx_descriptor *txd)
142{ 143{
143 return container_of(txd, struct pch_dma_desc, txd); 144 return container_of(txd, struct pch_dma_desc, txd);
144} 145}
@@ -163,13 +164,15 @@ static inline struct device *chan2parent(struct dma_chan *chan)
163 return chan->dev->device.parent; 164 return chan->dev->device.parent;
164} 165}
165 166
166static inline struct pch_dma_desc *pdc_first_active(struct pch_dma_chan *pd_chan) 167static inline
168struct pch_dma_desc *pdc_first_active(struct pch_dma_chan *pd_chan)
167{ 169{
168 return list_first_entry(&pd_chan->active_list, 170 return list_first_entry(&pd_chan->active_list,
169 struct pch_dma_desc, desc_node); 171 struct pch_dma_desc, desc_node);
170} 172}
171 173
172static inline struct pch_dma_desc *pdc_first_queued(struct pch_dma_chan *pd_chan) 174static inline
175struct pch_dma_desc *pdc_first_queued(struct pch_dma_chan *pd_chan)
173{ 176{
174 return list_first_entry(&pd_chan->queue, 177 return list_first_entry(&pd_chan->queue,
175 struct pch_dma_desc, desc_node); 178 struct pch_dma_desc, desc_node);