Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 358472
b: refs/heads/master
c: e63a47a
h: refs/heads/master
v: v3
  • Loading branch information
Andy Shevchenko authored and Vinod Koul committed Jan 8, 2013
1 parent f8736a7 commit e9766a2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ba84bd7146b9244de0ce04cdc668521a73f5336f
refs/heads/master: e63a47a361e03eaf79e0f2f6cdaca8e7679d1867
6 changes: 2 additions & 4 deletions trunk/drivers/dma/dw_dmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ static struct device *chan2parent(struct dma_chan *chan)

static struct dw_desc *dwc_first_active(struct dw_dma_chan *dwc)
{
return list_entry(dwc->active_list.next, struct dw_desc, desc_node);
return to_dw_desc(dwc->active_list.next);
}

static struct dw_desc *dwc_desc_get(struct dw_dma_chan *dwc)
Expand Down Expand Up @@ -600,9 +600,7 @@ static void dw_dma_tasklet(unsigned long data)
if (test_bit(DW_DMA_IS_SOFT_LLP, &dwc->flags)) {
if (dwc->tx_node_active != dwc->tx_list) {
struct dw_desc *desc =
list_entry(dwc->tx_node_active,
struct dw_desc,
desc_node);
to_dw_desc(dwc->tx_node_active);

dma_writel(dw, CLEAR.XFER, dwc->mask);

Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/dma/dw_dmac_regs.h
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,8 @@ struct dw_desc {
size_t len;
};

#define to_dw_desc(h) list_entry(h, struct dw_desc, desc_node)

static inline struct dw_desc *
txd_to_dw_desc(struct dma_async_tx_descriptor *txd)
{
Expand Down

0 comments on commit e9766a2

Please sign in to comment.