Re: [PATCH 4/4] em28xx-v4l: get rid of field "users" in struct em28xx_v4l2

2014-09-18 Thread Frank Schäfer
Hi Hans, Am 18.09.2014 um 21:13 schrieb Hans Verkuil: > Hi Frank, > > On 07/25/2014 07:48 PM, Frank Schäfer wrote: >> Instead of counting the number of opened file handles, use function >> v4l2_fh_is_singular_file() in em28xx_v4l2_open() and em28xx_v4l2_close() to >> determine if the file handle

Re: [PATCH 4/4] em28xx-v4l: get rid of field "users" in struct em28xx_v4l2

2014-09-18 Thread Hans Verkuil
Hi Frank, On 07/25/2014 07:48 PM, Frank Schäfer wrote: > Instead of counting the number of opened file handles, use function > v4l2_fh_is_singular_file() in em28xx_v4l2_open() and em28xx_v4l2_close() to > determine if the file handle is the first/last opened one. This won't work: if you capture f

[PATCH 4/4] em28xx-v4l: get rid of field "users" in struct em28xx_v4l2

2014-07-25 Thread Frank Schäfer
Instead of counting the number of opened file handles, use function v4l2_fh_is_singular_file() in em28xx_v4l2_open() and em28xx_v4l2_close() to determine if the file handle is the first/last opened one. Signed-off-by: Frank Schäfer --- drivers/media/usb/em28xx/em28xx-video.c | 23 +--