Re: [PATCH 1/3] media: Media Device Allocator API

2016-05-24 Thread Shuah Khan
On 05/23/2016 05:26 AM, Hans Verkuil wrote: > Hi Shuah, > > Some comments below: Thanks for the review. > > On 05/13/2016 07:09 PM, Shuah Khan wrote: >> Media Device Allocator API to allows multiple drivers share a media device. >> Using this API, drivers can allocate a media device with the

Re: [PATCH 1/3] media: Media Device Allocator API

2016-05-23 Thread Hans Verkuil
Hi Shuah, Some comments below: On 05/13/2016 07:09 PM, Shuah Khan wrote: > Media Device Allocator API to allows multiple drivers share a media device. > Using this API, drivers can allocate a media device with the shared struct > device as the key. Once the media device is allocated by a driver,

[PATCH 1/3] media: Media Device Allocator API

2016-05-13 Thread Shuah Khan
Media Device Allocator API to allows multiple drivers share a media device. Using this API, drivers can allocate a media device with the shared struct device as the key. Once the media device is allocated by a driver, other drivers can get a reference to it. The media device is released when all