Re: [PATCH] fsldma: move DMA_SLAVE support functions to the driver

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Dan Williams
Date: Thursday, September 23, 2010 - 2:58 pm

On Thu, Sep 23, 2010 at 1:12 PM, Ira W. Snyder <iws@ovro.caltech.edu> wrote:

Yes, thanks now I recall, and I remember saying something about how
this passes the "Voyager test".  That said it seems odd to carry
symbol exports for something like this.  Instead of exporting can we
exploit the fact that the fpga driver already knows it has a
fsldma_device pointer and do something like:

struct fsldma_device *fdev = container_of(dma, typeof(fdev), common);

fdev->slave_alloc();

This keeps it contained to the fsldma driver.

--
Dan
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] fsldma: move DMA_SLAVE support functions to th ..., Dan Williams, (Thu Sep 23, 2:58 pm)