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.
Arnd