lkml.org 
[lkml]   [2015]   [Nov]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [RFC v02 03/15] dmaengine: core: Introduce new, universal API to request a channel
    Date
    On Monday 30 November 2015 15:45:33 Peter Ujfalusi wrote:
    > const char *name);
    > struct dma_chan *dma_request_slave_channel(struct device *dev, const char *name);
    > +
    > +struct dma_chan *dma_request_chan(struct device *dev, const char *name);
    > +struct dma_chan *dma_request_chan_by_mask(const dma_cap_mask_t *mask);
    > +
    > void dma_release_channel(struct dma_chan *chan);
    > int dma_get_slave_caps(struct dma_chan *chan, struct dma_slave_caps *caps);
    > #else
    > @@ -1268,6 +1291,14 @@ static inline struct dma_chan *dma_request_slave_channel(struct device *dev,
    > {
    > return NULL;
    > }
    > +static inline struct dma_chan *dma_request_chan(struct device *dev)
    > +{
    > + return ERR_PTR(-ENODEV);
    > +}
    >

    The prototypes for dma_request_chan() don't match, otherwise looks good.

    Arnd


    \
     
     \ /
      Last update: 2015-11-30 15:41    [W:4.283 / U:0.952 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site