diff options
author | Tomoya MORINAGA <tomoya-linux@dsn.okisemi.com> | 2011-05-09 03:09:36 -0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2011-05-09 07:42:23 -0400 |
commit | 08645fdc7bab4564f7dfd07525da8a1761f8f106 (patch) | |
tree | 5b65ccb6255b2eac854fa6485a839f685084a1fe /drivers/dma | |
parent | c8fcba600c46c5d7667ec230b1d9ce3ce5859f9c (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.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); |