diff options
Diffstat (limited to 'drivers/dma')
-rw-r--r-- | drivers/dma/pch_dma.c | 9 |
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 | ||
141 | static inline struct pch_dma_desc *to_pd_desc(struct dma_async_tx_descriptor *txd) | 141 | static inline |
142 | struct 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 | ||
166 | static inline struct pch_dma_desc *pdc_first_active(struct pch_dma_chan *pd_chan) | 167 | static inline |
168 | struct 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 | ||
172 | static inline struct pch_dma_desc *pdc_first_queued(struct pch_dma_chan *pd_chan) | 174 | static inline |
175 | struct 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); |