Hi Arnd,

On Aug 26, 2011 4:03 PM, "Arnd Bergmann" <arnd@arndb.de> wrote:
>
> On Thursday 25 August 2011, Sumit Semwal wrote:
> > >>
> > > Hmmm... Do you mean the platform driver (device?) ptr? That's a good idea -
> > > I will make these changes you suggested, and re-post. I'm thinking of
> > > posting the next version to the upstream mailing lists as well.
> > >
> > Btw, does this mean we can 'assume' that all users/allocators of dma-buf
> > would be platform devices?
> >
>
> You can pass any struct device, since the pointer is only used by
> the driver that set the pointer it will be able to cast it back to
> the derived type.
I think the idea here is for the original allocator to know that it allocated a given buffer; so the struct device here is used more as an identifier.

Br,
~Sumit.
>
>        Arnd