aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma
diff options
context:
space:
mode:
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);